![]() |
Sign the Notepad |
| Name | Comments | ||||||
|
Добавяне на VLAN интерфейс в линукс.
VLAN Network Interface in Linux. Ако правим виртуалния интерфейс на eth0, правим така: # cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.10 Това копира конфигурационния файл на eth0 в eth0.10 Тук някъде някой може би започва да се досеща, че тази цифра 10 е на практика VLAN тага. Следва редактиране на конфигурационният файл за новият интерфейс: # vi /etc/sysconfig/network-scripts/ifcfg-eth0.10 Променяме DEVICE=ifcfg-eth0.10 Добавяме VLAN=yes И рестартираме мрежата: # /etc/init.d/network restart Другият вариант е следният: # vconfig add eth0 10 # ifconfig eth0.10 192.168.1.1 netmask 255.255.255.0 За да изтриете създаден VLAN: # ifconfig eth0.10 down # vconfig rem eth0.10 Честито! |
||||||
|
Generating SSL certificates for Apache:
# cd /etc/httpd # openssl req -newkey rsa:1024 > server.csr Remove key's password (optional): # openssl rsa -in privkey.pem -out /etc/httpd/ssl.key/server.key Creating the actual signed certificate: # openssl x509 -in /etc/httpd/ssl.csr/server.csr -out server.crt -req -signkey /etc/httpd/ssl.key/server.key -days 3650 |
||||||
|
|
||||||
|
Solaris 10 SNMP:
Configuration file: /etc/sma/snmp/snmpd.conf restart the sma (system management agent): # svcadm restart svc:/application/management/sma:default To view the status of the agent: # svcs svc:/application/management/sma:default |
||||||
|
Reset Sun ALOM password:
For user admin # cd /usr/platform/`uname -i`/sbin # ./scadm userpassword admin |
||||||
|
Dump postgresql database to file:
pg_dump -U databaseuser -W database > dump.sql Restore postgresql dump: psql -U databaseuser database < dump.sql |
||||||
|
In case you see this:
Compiling Keyfile.cpp In file included from Keyfile.cpp:10: /root/truecrypt-6.1a-source/Common/SecurityToken.h:43:21: warning: pkcs11.h: No such file or directory In file included from Keyfile.cpp:10: Durring TrueCrypt installation, do this: # wget ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h # wget ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h # wget ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.h |
||||||
|
SSL support for Apache 2.0.x on FreeBSD 7.1
Creating directories: # mkdir /usr/local/apache2/conf/ssl.key # mkdir /usr/local/etc/apache2/ssl.crt # mkdir /usr/local/etc/apache2/ssl.crl Creating 10 years valid certificate: # openssl req -new -x509 -days 3650 -keyout /usr/local/etc/apache2/ssl.key/server.key -out /usr/local/etc/apache2/ssl.crt/server.crt Starting apache with ssl: # apachectl startssl (It asks for the pass key) To remove the pass key: # cd /usr/local/etc/apache2/ssl.key # cp server.key server.key.orig # openssl rsa -in server.key.orig -out server.key |
||||||
|
Problem
------- How do I change the timezone on my Solaris server/workstation? Solution -------- a) Edit /etc/TIMEZONE NOTE: the man page incorrectly states this file is called /etc/timezone b) Reboot your server with shutdown or init. Examples -------- US/Eastern US/Central US/Mountain US/Pacific For the full list, look in: /usr/share/lib/zoneinfo/ |
||||||
|
Tyxo са супер зле...както и vbox7 и всичките от тази верига
|
||||||
|
tyxo.bg - Неучтив, муден, бавен, неточен и безполезен съпорт...
|
||||||
|
|
||||||
|
POSTGRESQL - Create database and user account:
$ createuser Enter name of role to add: username Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) n Shall the new role be allowed to create more new roles? (y/n) n CREATE ROLE $ $ createdb databasename $ psql postgres=# alter user username with encrypted password 'password'; postgres=# grant all privileges on database databasename to username; |
||||||
|
Create hardware RAID1 on Sun Solaris
# raidctl -c c1t0d0 c1t1d0 c1t0d0 is the system drive on which the OS is installed. It will be the master drive. The second will be wiped. Enabling the cache for this array: # raidctl -p "wp=on" c1t0d0 |
||||||
|
Show ethernet interface cards connection speed in Sun Solaris:
# dladm show-dev |
||||||
|
Аз наметнах една катмичка така да закрепя положението...
|
||||||
|
Как се улях с чаааай... |
||||||
|
Installing Oracle 10 on Solaris 10 SPARC
Create oracle user account: # useradd -c "Oracle Owner" -d /export/home/oracle oracle Edit [create] .bash_profile file in oracle user home directory: ORACLE_HOME=/export/home/oracle/oracle/product/10.2.0; export ORACLE_HOME ORACLE_SID=QUO1; export ORACLE_SID TNS_ADMIN=/export/home/oracle/config/10.2.0 export TNS_ADMIN ORA_NLS10=${ORACLE_HOME}/nls/data; export ORA_NLS10 CLASSPATH=${CLASSPATH}:${ORACLE_HOME}/jdbc/lib/classes12.zip ORACLE_TERM=xterm; export ORACLE_TERM ORACLE_OWNER=oracle; export ORACLE_OWNER #NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1; export NLS_LANG LD_LIBRARY_PATH=/usr/lib:${ORACLE_HOME}/lib:${ORACLE_HOME}/lib32; export LD_LIBRARY_PATH # Set up the search paths PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/sfw/sbin PATH=$PATH:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/sadm/bin PATH=$PATH:/usr/sfw/bin:/usr/X11/bin:/usr/j2se/bin PATH=$PATH:$ORACLE_HOME/bin This is added to /etc/system: set shmsys:shminfo_shmmax=4294967295 set shmsys:shminfo_shmmin=1 set shmsys:shminfo_shmmni=100 set shmsys:shminfo_shmseg=10 set semsys:seminfo_semmns=1024 set semsys:seminfo_semmsl=256 set semsys:seminfo_semmni=100 set semsys:seminfo_semvmx=32767 set noexec_user_stack=1 Create default project for oracle user: # projadd -U oracle -K "project.max-shm-memory=(priv,4096MB,deny)" user.oracle # projmod -s -K "project.max-sem-ids=(priv,256,deny)" user.oracle Unpack Oracle distribution file [as user oracle]: $ gunzip filename.cpio.gz $ cpio -idcmv < filename.cpio Start the installation: $ ./runInstaller |
||||||
|
Adding a Swap File on Solaris:
Creating the file: # /usr/sbin/mkfile 1024m /swap Activating the swap: # /usr/sbin/swap -a /swap Absolute path to the swap file must be given. |
||||||
|
Building and installing FreeBSD custom kernel [with firewall]:
# sysinstall Configure > Distributions > src > base + sys # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL Add in MYKERNEL: options IPFIREWALL options IPFIREWALL_VERBOSE # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL Add in /etc/rc.conf firewall_enable="YES" firewall_type="OPEN" Reboot! |
||||||
|
Change your default shell in FreeBSD:
Смяна на шел-а по подразбиране: # chsh -s /usr/local/bin/bash [user] |
||||||
|
Бях сглобил компютър на Ненка (грижи се за чистотата в офиса ни), та тя в изблик на радост:
Ся ша видите кви джунджурии ще си купя за компютъра! Ще го направя... сървър! |
||||||
|
Upgrade FreeBSD ports collection:
# portsnap fetch extract Display outdated ports list: # pkg_version -vIL= Update FreeBSD packages / software: # portmanager -u Apply binary security updates for FreeBSD: # freebsd-update fetch install |
||||||
|
Актуализирането на системния часовник във FreeBSD, чрез сървър за време.
Updating time via NTP in FreeBSD. # cp /usr/share/zoneinfo/zonefilehere /etc/localtime /etc/rc.conf ntpdate_enable=”YES” ntpdate_program=”ntpdate” ntpdate_flags=”-b 0.europe.pool.ntp.org” |
||||||
|
|
||||||
|
Цитат от Skype:
[15:16:58] KIRO каза: tam li si [15:17:10] KIRO каза: zna4i interisuvame [15:17:43] KIRO каза: kaji mi kolko pari struva laqr lesa [15:17:54] T! каза: da [15:18:00] KIRO каза: ustroistvoto za bezzi4en internet [15:18:11] T! каза: pishe se wireless :) |
||||||
|
/usr/platform/`uname -i`/sbin/prtdiag -v
Информация за заетите слотове оперативна памет в Соларис. Used memory slots information in Solaris. |
||||||
|
Добре рошли!
|
||||||
|
Да речем, че това е един онлайн бележник, в който всеки може да си драска по нещо, което иска да сподели с Интернет.
|
||||||