Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.87 sec)
mohamad_kian's profile (1548 points)

About: My name is Mohamad Hadi Kianersi I Teaching Linux in sharif University of Iran mohamad.hadi.kianersi@gmail.com mohamad_hadi_kianersi@yahoo.com
what is clean-room environment on linux?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: type env in your user some env for all user and other environment you add in your user you can use unset env for delete env
i'm in school and they have just recieved a new server and i want to create a sandbox so that me and the other students can play with subnets.there is a network here and whenever i connect the server with dhcp enabled it crashes the existing network ....how do i hook this up? sorry i'm very new
Asked in: WindowsServers  (1 answers)
mohamad_kian's response: Hi, add file from server in /etc/rc.d and /etc/inid.d after chkconfig --add server-name
At the output of last command i can see one of the ftp server users log in to it every night at 2 am. but its impossible in that time that person isnt there. and i just can see the first 3 oct of its ip (10.10.200) and i cant see the full ip of client that login to ftp. how should i know more information about it? thanks
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: Hi, check /var/log/xferlog or /var/log/security
Error: Cannot retrieve repository metadata (repomd.xml) for repository: google. Please verify its path and try again
Asked in: Fedora-Linux-Servers  (4 answers)
mohamad_kian's response: Hi, now check it in your country
HI to all i use fsck command on my /dev/sda1 and see this error what should i do .? fsck.ex3: e2fsck read_bitmaps: illegal bitmap block(s) for /dev/sda1
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: Hi, first umount /dev/sda1 from mount point directory after try fsck
Any suggestions for securely keeping 50 keys and being able to move them safely between hosts for backing them up?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: Hi, try this to generate key ssh-keygen -t rsa
I have a server with two constantly changing partitions. Is Amanda the best offsite backup method?
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: Hi, try to use cpio with -p option
HI to all i use fsck command on my /dev/sda1 and see this error what should i do .? fsck.ex3: e2fsck read_bitmaps: illegal bitmap block(s) for /dev/sda1
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: hi, you must umount filsystem after run fsck /dev/sda1 you dont have problem if get any error type error this site
how i can find security problems about selinux?
Asked in: RedHat-Linux-Servers  (2 answers)
mohamad_kian's response: SELinux=Security-Enhanced Linux ls -l /etc/selinux/ for status when start service view "config" file but for configure this service for your server you must create route for your system http://en.wikipedia.org/wiki/Security-Enhanced_Linux http://selinuxproject.org/page/Main_Page http://www.nsa.gov/research/selinux/
Error: Cannot retrieve repository metadata (repomd.xml) for repository: google. Please verify its path and try again
Asked in: Fedora-Linux-Servers  (4 answers)
mohamad_kian's response: google block ip from iran you can rm /etc/yum.repos.d/google* after yum update
I would like to know how to automatically add drive mappings to ubuntu 11.04 user account once the system has been joined to an active directory domain using centrify.
Asked in: Ubuntu-Linux-Servers  (1 answers)
mohamad_kian's response: you can read manual rcp
I have a edubuntu 11.04 LTSP server where everything works well just external devices connected on the thin clients doesn't show on the thin client desktop. When I connect a usb printer or key directly to the server, it is shown and gived in use to all thin clients. When I connect the same printer to a thin client, the client recognises the printer but the server can't see it and it does not give it in use to the thin client. localdev is set to on in lts.conf. Thanks for any help. p.s. sorry for my english.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: you can type this less /var/log/messages SHIFT+F after connect new device to your computer port and see log file to detect or not
I've installed the Ubuntu 11.04 server (2.6.38-11) to my FIT-PC2 machine, which freezes under network traffic. The system becomes unstable, and it don't respond to anything. Not even to the keyboard. I've understood that the problem could be in the r8169 kernel module. Some information could be found, that changing to r8168 kernel module could help. Is it so? Has anyone else met this problem? I've also red that the problem should have been fixed in the kernel 2.6.30+ However I still has the r8169 in my system... If the use of the r8168 kernel module fixes the problem, what is the best way to get it in use?
Asked in: Ubuntu-Linux-Servers  (7 answers)
mohamad_kian's response: find driver for linux you find driver in x.tar.gz or maybe x.run if x.run find you can type this ./x.run or x.tar.gz after type this "tar xf x.tar.gz" read INSTALL,README file
There is a syncserver S300 in our network to sync all of servers but there is a clock that is connected to it and show the time. But today it didnt sync with the current time.. what should i do?
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: maybe some service (fore example oracle , ...) dont accept to sync server together but think better you send error in this site to do your work less /var/log/messages
There is a syncserver S300 in our network to sync all of servers but there is a clock that is connected to it and show the time. But today it didnt sync with the current time.. what should i do?
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: in today in iran 1hours to back and if you connect to other time server your server time to back you must all time in all server sync together
How can I extract just those columns from /etc/passwd ?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can type this cut -fX -d":" /etc/passwd X=filed you need
I wrote a schedule in my crontab file. It executes in one computer but doesn't in another. What you think might be the problem?
Asked in: Linux-Servers  (11 answers)
mohamad_kian's response: crontab is a service and you can type crontab -e to edit cron service you can set MAIL=root for cron to after do job mail to your user
Can any one please help me suddenly mysqld service is not starting in centos6 64 bit server with nginx+php-fpm ? And please help me to configure for heavy database for large wordpress website.
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: /etc/init.d/mysql start after chek your server whit nmap to open mysqp port or not if dont open new port chek /var/log/messages
I want download *.deb package for ubuntu. Where can I download them?
Asked in: Ubuntu-Linux-Servers  (7 answers)
mohamad_kian's response: you can find ftp server for debian package after you can get al package
Can I just have UDP and not ICMP or TCP?
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: tcpdump |grep udp >>/tmp/tcpdump-date
I found a long forgotten NEC S1500 storage system with 10 disks in our lab which has never been installed. However there is no manual for setting it up and I wasn't able to find some guide over the net. There is also an ubuntu server in that room. Any ideas/guides about connecting those two or simply setting up the NEC system, would be most gladly appreciated.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: i think your storage must have console port if dont have , see what port have
Is the only and best way to use .bashrc ?
Asked in: ShellScripts  (3 answers)
mohamad_kian's response: you can type this echo "/usr/local/bin/your-shell-script" >>/home/user/.bash_profile or vi /etc/profile if [ $USER = "your-user-name" ] then run shell script fi
I need to trigger: http://server:8080/script.php?var=1 from Bash. Any ideas welcome.
Asked in: ShellScripts  (3 answers)
mohamad_kian's response: in your shell or crontab or any other jobs you can run shell that run wget in bash shel script . . . wget -c -r -p -U Mozilla URL . .
Can I stop fsck asking questions when I run it ? Can I turn off the prompting ? Cheers.
Asked in: Ubuntu-Linux-Servers  (2 answers)
mohamad_kian's response: you can run fsck with -y option or fsck pipe to "yes y"
I cannot find /etc/adduser.conf in Fedora 14 there is a reason about this?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can type this rpm -qfi /etc/adduser.conf if this file is there you can find it this file search from rpm DB in /var/rpm
Is it possible to migrate applications to Red5 from FMS?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: read this site http://trac.red5.org/ http://www.red5.org/
Where can I get them from ? Thanks.
Asked in: Debian-Linux-Servers  (2 answers)
mohamad_kian's response: you can download gnome theme from http://gnome-look.org/
How secure is SCP - it it encrypted ?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: secure copy (remote file copy program) scp user@host-name:file1 . . .
How do I set up iftop to only allow one subnet without adding a filter once it's running?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can type this iftop -i eth0/wlan0 -P Turn on port display.
How do I alter which port SSH runs on to stop port 22 spam traffic?
Asked in: Debian-Linux-Servers  (2 answers)
mohamad_kian's response: vi /etc/sshd_config #Port 22 change to Port 220 save file /etc/init.d.sshd restart
I know about Ubuntu and Debian packages updates with aptitude but what about Fedora? How can I update all the packages? Is there a way of getting an email when they're available? Thanks very much for your help.
Asked in: Fedora-Linux-Servers  (4 answers)
mohamad_kian's response: you can type this 1 apg-get dist-upgrade 2 apt-get update 3 apt-get upgare
I installed Redhat 6.1 64bit and I'd like use yum command for installing packages. How to can use yum in RedHat for install an update package without Serial Number (RHN) ?
Asked in: RedHat-Linux-Servers  (4 answers)
mohamad_kian's response: you must add detabase from repository you can search "add reposritoey for yum el6"
what is meaning of this number in right side of patch source? http://www.kernel.org/diff/diffview.cgi?file=/pub/linux/kernel/v2.6/next/patch-v3.1-rc1-next-20110812.bz2
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: for example kernel-X.Y.Z.bz2 X=main modification Y=minimum modification Z=very small modification but for debuging
Can I use mod_rewrite to change requests to: www.google.com to www.google.com/directoryname ?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can vi www/htdocs/index.html and write html code fore redirect to other site
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: if you need new feature or complie device driver or add new device you better compile kernel
I need to update a field via a bash script. Can it be done ? -e isn't working for me.
Asked in: ShellScripts  (3 answers)
mohamad_kian's response: you can use this command set -x -v after run your shell script to debug your error
I'm new to Dovecot and Squirrelmail. It's definitely running and port 143 is open. Any ideas ?
Asked in: Email-Servers  (3 answers)
mohamad_kian's response: check your server that support IMAP or not after try to login with telnet Your-IP port(143)
I'm getting this with a fresh install of SSHD: sshd[12922]: Did not receive identification string from IPADDRESS Confused ? Me too.
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: check service sshd on your server is run or not after view is port is open or not afte ssh to local-server and read /var/log/secure and /var/log/messages
What can I do to restore this EBS volume after Amazon's lightning strike ? Argh.
Asked in: Cloud-Servers  (1 answers)
mohamad_kian's response: you can type echo $? 0 Normal exit. 1-125 Failure. 126 A command was found but cannot be executed. 127 A command could not be found. 128-255 Failure.
I need the motherboard type and if it can support DDR3 RAM ideally.
Asked in: Ubuntu-Linux-Servers  (3 answers)
mohamad_kian's response: @jala is best answer lsmod or lshw is your answer
One of my servers all but lock up when I run find like this: find / -name filename Any ideas how to prevent it ? Thanks a lot for your help.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: /bin/find or /usr/bin/find / -iname filename -exec cat {} \; |grep search-parametr
My old server only has console access and no VGA. Can I install Ubuntu Server over console only in text mode ?
Asked in: Ubuntu-Linux-Servers  (4 answers)
mohamad_kian's response: i think you cant install ubuntu in text base you can install Redhat in text base or instal esx after install ubuntu on esx
How do I insert an advert at the start of a flash stream? Thanks.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you intall patch or package?
How do I insert an advert at the start of a flash stream? Thanks.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: this question is not linux server
How do I send SMS from a server in the UK ? Do I need a set of mobile phones connected to my server ?
Asked in: OtherProgramming  (3 answers)
mohamad_kian's response: you can install GSM-modem after you must see your application mobile support linux
I know we can monitor if a port is open remotely but what about an application ? I need to receive alerts if one fails. Thank you.
Asked in: Ubuntu-Linux-Servers  (3 answers)
mohamad_kian's response: you can type this ps -aef |grep program-name example root 2029 1 0 16:18 ? 00:00:00 /usr/sbin/sshd start in 16:18
Can any one point me at a SECURE login session guide for PHP5 ? Thanks.
Asked in: OtherProgramming  (1 answers)
mohamad_kian's response: you can see w3schools.com
I've heard of Pingdom before but what other good sites are there for geographically diversely monitoring the uptime and respone times for our website from all the continents ? Thanks.
Asked in: Server-Networking  (1 answers)
mohamad_kian's response: you can type uptime
Can I monitor hard drive space with SNMP and get graphs on usage history ? How do I do that ? Thanks.
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can write shell script to chek size partition and run this in crontab afret every log mail to your adress
I have loads of text files being adding to a directory and rather than worrying about running out of disk space I'd like to zip them up once a month. They don't need tarred up I don't think because they're just single files like: 345.txt So I just want to make that 345.txt.gz I'm worried that I might delete things by accident or push the server load right up. Also will gzip ignore already .gz files ? How would I do this ? Thank you.
Asked in: ShellScripts  (3 answers)
mohamad_kian's response: in crontab run shell in shell type this cd /home find . -exec gzip {} ;\
How can I make sure root definitely can't login? Thanks.
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: vi ssh.conf in etc directory and comment line of root-login
Can I leave a terminal running and just watch my Maildir (usually picked up over IMAP) from the command line without Mutt (which I don't like at all !) ? Cheers.
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: you can install mailx
How can I capture Ethernet multicast packets using ngrep ? I don't want to sniff IP protocol multicast packets though. Thanks for any help.
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: you can use tcpdump or wireshark for this work
Which entries in the logs should I be concerned about and how can I protect against them ? Thanks.
Asked in: Ubuntu-Linux-Servers  (1 answers)
mohamad_kian's response: yo can www/config/httpd.conf and fine access-log parameter
I need some hardware advice please - a DVD dukebox recommendation. I want about 10-12 DVD rewritable DVDs where I can remove one and take it offsite (from a Data Centre) every now and again and add another when I do. Thank you.
Asked in: Ubuntu-Linux-Servers  (1 answers)
mohamad_kian's response: you can bye dvdwriter case this package have 1 dvdrom and 4-20dvdwrite but you must sen date in data cable to this case
Is it possible to save these remotely away from Amazon like on a NAS ? Thanks.
Asked in: Cloud-Servers  (1 answers)
mohamad_kian's response: read wget manual
How can I tell which file is keeping a module open and in use ? I used lsmod but I get a problem when I try modprobe -r and can't remove the module.
Asked in: Ubuntu-Linux-Servers  (2 answers)
mohamad_kian's response: you can type lsof lisf-open-file |grep find-it for delet module can type rmmod module
I'm trying to serve one directory from another and it won't work: Alias /css /var/www/localhost/stylesheets Thoughts ?
Asked in: Ubuntu-Linux-Servers  (2 answers)
mohamad_kian's response: you can create directory link example ln -s /usr/local/www/ /opt/www
I cant get yum update in RHEL6.1 .the output error is: # yum update Loaded plugins: product-id, refresh-packagekit, subscription-manager Updating Red Hat repositories. google-talkplugin | 1.5 kB 00:00 http://dl.google.com/linux/talkplugin/rpm/stable/x86_64/repodata/repomd.xml: [Errno -1] Error importing repomd.xml for google-talkplugin: Damaged repomd.xml file Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: google-talkplugin. Please verify its path and try again yum.conf file is: # cat /etc/yum.conf [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 # This is the default, if you make this bigger yum won't see if the metadata # is newer on the remote and so you'll "gain" the bandwidth of not having to # download the new metadata and "pay" for it by yum not having correct # information. # It is esp. important, to have correct metadata, for distributions like # Fedora which don't keep old packages around. If you don't like this checking # interupting your command line usage, it's much better to have something # manually check the metadata once an hour (yum-updatesd will do this). # metadata_expire=90m # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d How can i solve this error??? please help me. Thanks.
Asked in: RedHat-Linux-Servers  (8 answers)
mohamad_kian's response: yum update --skip-broken i think this questin for client
when i run some gnome application I get segmentation fault ... why?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: i think confilict library with library 64bit
how to fetch a string in the text. I need a /media/New Volume type in this text /dev/sda5 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) fusectl on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) none on /dev type devtmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) nfsd on /proc/fs/nfsd type nfsd (rw) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/hamid/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=hamid) /dev/sdc1 on /media/FreeAgent GoFlex Drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) /dev/sde5 on /media/New Volume type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) the ' ' is importand
Asked in: ShellScripts  (4 answers)
mohamad_kian's response: you can use these command tr - cut - grep - tail - head
When I'm downloading large files direct to my server sometimes the URL ends with something like &var=esdfvklwejflkejrn and breaks when I'm using wget. How do I get round this ? I sometimes have to download it to my desktop and then upload it to the server which is ridiculous. Thank you.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you msut create directory in new directory type wget -rc www.example.org for other help read http://www.computerhope.com/unix/wget.htm
How can I only allow certain people to connect to my server so people can't pirate the content but still let the public watch live streams? Thank you.
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: http://www.adobe.com/products/flashmediaserver/ i think you must asked for media server supported
Can I encrypt everybody's connections and refuse people who don't use port 25 for email?
Asked in: Email-Servers  (2 answers)
mohamad_kian's response: check this parameter in /etc/postfix/main.cf smtpd_use_tls = yes #smtpd_tls_auth_only = yes smtpd_tls_key_file = /etc/postfix/newkey.pem smtpd_tls_cert_file = /etc/postfix/newcert.pem smtpd_tls_CAfile = /etc/postfix/cacert.pem smtpd_tls_loglevel = 3 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom
My Apache installation bombs out three or four times a day. Can I diagnose this somehow ? Thanks.
Asked in: Debian-Linux-Servers  (3 answers)
mohamad_kian's response: you can type this strace /etc/init.d/httpd start and read all systemcall and library for start afret do work to crash apache and see error on terminal you can see log file apatche in /var/log
how i can convert ppt to pdf in command line ?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can install ps2pdf in your linux ps2pdf -dParameterName myFile.ps
Is there a list I can refer to ? It's annoying I have to specify exact hardware and I could do with some clues ! Thanks in advance for assistance.
Asked in: Virtual-Machines-Servers  (2 answers)
mohamad_kian's response: you can see this site for minimum system for ESX/ESXi http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003661
I'd like to give a server an IP on Debian at boot time over DHCP and config it from there. Is PXE the way to go? Thanks.
Asked in: Debian-Linux-Servers  (2 answers)
mohamad_kian's response: you can run dhcp clinet in end of lin in /etc/rc.local
Could anyone please help with a PHP lock file function ? I want to create a symlink when a URL like this is followed (with the filename being the characters after "file="): http://www.domain.com/download.php?file=zuRpj4b2AkGJz%2a3O and then I need to deny access if the symlink exists ... but I'm out of my dept ! Help greatly appreciated. There's 200 of my points for a solution. Is it possible ? Cheers.
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: is good refrence http://www.w3schools.com/php/
i have install bind9. i have create some zones. How can i create a root name server?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: zone "." in{ type hint; file "root.servers"; }; http://www.zytrax.com/books/dns/ch7/
I'd like to use webmin for some things but how do I make it really safe from abuse?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can do som things 1- package webmin earase 2- service webmin stop 3- start web min in https 4- change config file to access_from localhost or IP-Adress
Would you be so kind to let me know how to create Ubuntu clustering using VMWare for testing?
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: you cab read about Hadoop http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-multi-node-cluster/
I can't switch off the warnings in SSH for changing fingerprints. Anyone know how ?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: rm -rf ~/.ssh
I've edited my.cnf, restarted the daemon and my firewall but cannot connect properly ! bind-address = IP-Address
Asked in: Ubuntu-Linux-Servers  (3 answers)
mohamad_kian's response: maybe in config file told only connected to mysql from local ip or block port in iptables
How to block Torrents in Squid proxy
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can filter port torrent in squid but beter block port in iptables
I need to check it's still serving RTMP streams over port 1935 and would like an e-mail alert if it isn't. I will give 100 of my points and the best answer for a good Linux script to do this. That's 150 points ! There is a script called fmscheck for Linux but I need a hand: http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f29261b7-7fe8.html
Asked in: ShellScripts  (1 answers)
mohamad_kian's response: you can do it 1- nmap ip-server |gerp port-number 2- if [ $? != 0 ] // this port is not work 3- then gsmsendsms -d /dev/ttyUSB0 echo mesage `date` |mail -s is-down mail-addres fi
How can I stop my DHCP logs in /var/log filling up my disk ? I'm not sure if it can be done.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: you can edit /etc/dhcp.conf edit log parameter
Does everybody install every kernel upgrade even if only there is only one user on the server?
Asked in: Debian-Linux-Servers  (3 answers)
mohamad_kian's response: beter in single user mode upgarade new kernel but you can upgarade that in multi user after reboot system
Can I make any file created by a user always have the same set of permissions on a per-login basis? Thanks.
Asked in: Ubuntu-Linux-Servers  (2 answers)
mohamad_kian's response: you can change file /etc/security/limit.conf # - maxlogins - max number of logins for this user #@student - maxlogins 4
I have four servers behind a firewall and it's showing errors so I'm going to replace it. I'd like to easily being able to sniff all the traffic for the four servers so I'm going to individually firewall them with iptables and put a switch in place of the firewall. Any recommendations for a decent switch (gigabit) that will do port mirroring so I can install watch all traffic easily ? Thanks.
Asked in: Server-Networking  (1 answers)
mohamad_kian's response: in textbase is iptraf , mtr , ... in graphic ntop , etherape , ...
From what I've read qemu isn't quite as solid for production as KVM. I can't get my head round the install stuff though. Are there good guides someone can recommend please ?
Asked in: Suse-Linux-Servers  (1 answers)
mohamad_kian's response: you install kernel-header-x-y after kvm is work
I have been given a project by my teachers to make a mini cli. In which I have to create files folders and other stuff using that programme ! But the files or folders I create should not be visible or accesable without that programme ! They should not be visible from outside on the computer ! So what should i do ? How would i start ? Please help and share ideas ! The programme is to be written in C++ :)
Asked in: OtherProgramming  (7 answers)
mohamad_kian's response: you can download document from http://www.linuxfromscratch.org/lfs/download.html and read about shell
I get this from SCP and SSH in a script: Pseudo-terminal will not be allocated because stdin is not a terminal Any thoughts ?
Asked in: ShellScripts  (2 answers)
mohamad_kian's response: see this http://www.unix.com/unix-advanced-expert-users/26124-pseudo-terminal-will-not-allocated-because-stdin-not-terminal.html
I know there's two manully made mistakes in /etc/shadow. Can I restore them on the system without spending ages looking through backups ? Thanks very much. I'm using Ubuntu Server BTW.
Asked in: Ubuntu-Linux-Servers  (4 answers)
mohamad_kian's response: you must restore only hashed password needed but if you have passwd and shadow file you can copy to other system and work that and you Attention for permition and owner
How can I compile my kernel in a monolithic design?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: if you create kernel for all devices you must install all module and compile this then you have larg kernel and when your system is booting up many time too boot kernel but you can install all moudule in module kernel beter you $cat /boot/configX-Y-Z >/usr/src/kernel/linux-3X/.config
In Linux is there actually a difference? My backup software doesn't seem very happy about symbolic links.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can see manual ln -s, --symbolic make symbolic links instead of hard links hard link must be avalebale too create symbolic link if you any modifile in symbolic link you cnahge it in hard link you can backup whit simbolic link see manual backup command and find option for that
I've set the correct permissions and the script is in the normal directory /cgi-bin/ but it won't execute for some reason. What's missing ?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can see config/httpd.conf and search path error log parameter after see log error
Please say step by step. How I can install and configure kernel 3.0 ?
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: you can see README file and see all parameter better you cant type this make xconfigue make modules_instal make install after you have 4 file in /boot with new version
I've just run nmap on a server that I know has some ports open it didn't find. Does IPtables hide ports completely ? TCP wrappers doesn't seem to.
Asked in: Server-Firewalls  (2 answers)
mohamad_kian's response: in iptables first all action is drop and after any port needed other action for example all forward is drop after port 80 accept
what is meaning of LD , CC during make bzImage command in compiling kernel?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can see this site http://pc.autons.net/stuff/kernel-compile-slowdown.phtml cc means gcc ld combines a number of object and archive files, relocates their data and ties up symbol references. Usually the last step in compiling a program is to run ld.
I found this article but was wondering if there were easier ways of uploading to Dropbox from Ubuntu Server and if of this Wiki entry was out of date. http://tinyurl.com/6krsqbo This bit seems quite long winded, just to change directory ! $ dropbox stop $ cp ~/.dropbox/dropbox.db dropbox.db.backup $ wget http://dl.dropbox.com/u/119154/permalink/dropboxdir.py $ chmod +x dropboxdir.py $ mv ~/Dropbox /foo/bar $ ./dropboxdir --setfolder=/foo/bar $ dropbox start
Asked in: Ubuntu-Linux-Servers  (1 answers)
mohamad_kian's response: when type dropbox start less /var/log/messages SHIFT+F and see error
Which registrars let me connect in to register domains over the command line using an API ? I've found these guys so far: http://www.melbourneit.com.au
Asked in: DNS-Servers  (1 answers)
mohamad_kian's response: you can install webmin and config this in http://localhost:10000
Can you please let us know how to Manage Distribution Lists with postfix LDAP. Thanks in Advance.
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can see http://ubuntuforums.org/showthread.php?t=1758065
Can I switch off the yes/no question in SCP when I connect to a new server ?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can type shell script to automoticaly scp for example : for i in `cat ~/file_list` do scp $i user@remote-server:/~ done;
We have closed a department at work and I need to remove around thirty user accounts of a few servers. Can you do this automatically (and safely) ? Thanks.
Asked in: CentOS-Linux-Servers  (2 answers)
mohamad_kian's response: you can find in passwd file you must find group id and lock user you can # that line or change /bin/bash to /sbin/nologinif is many you can do it with SED command
I'm sure I used to know how to do this but can't remember.
Asked in: Ubuntu-Linux-Servers  (4 answers)
mohamad_kian's response: ls -l /boot/ and see end of name file of uname -a
I've just had a slightly funny scenario with dpkg. I had manually installed a file with dpkg -i a few months ago. I was updating packages with security updates using apt-get update followed by aptitude full-upgrade but that was failing. Even running dpkg -a --configure gave this: dpkg: dependency problems prevent configuration of PACKAGE apt-get install -f did nothing either. Eventually dpkg -r PACKAGE fixed the installed package immediately by cleanly removing it and aptitude full-upgrade completed correctly. This isn't great on a production server though obviously. I thought that apt-get, aptitude and dpkg usually all played nicely together but in this case using dpkg to remove the package was the only thing that would fix it. Is this always the case if you install a package with dpkg -i?
Asked in: Debian-Linux-Servers  (2 answers)
mohamad_kian's response: you can type dpkg -r pakage name if dont find maybe you have that package 2 or upper version you must select version
I've been manually creating index.html files in each of my subdirectories but how do I ban directory listing for the entire Apache server ? Should I do both do you think ? Thanks you.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: in apache server in conf/httpd.conf have parameter for index.html you can change this path
I get weird errors when I try and start a new install of named: /etc/named.conf: unknown option 'zone' /etc/named.conf: unknown option 'logging' Any help appreciated.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you canf type find / -name named.conf after diff named.conf1 named.conf2 and fixed it if dont find other see it http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=4330&forum=31
During the OS install I can add a second IP easily enough but how do I add a second IP address to eth0 ? It's not something I've ever needed to do before. Thanks in advance.
Asked in: Ubuntu-Linux-Servers  (5 answers)
mohamad_kian's response: you can type echo "ifconfig eth0:2 IP-address" >>/etc/rc.local
Can I remote desktop into a non-standard 3389 port ? I hope so ! How do I do it ? Thanks.
Asked in: WindowsServers  (2 answers)
mohamad_kian's response: you can use a application for remote desktop and set into connect with which port ms-wbt-server 3389/tcp MS WBT Server
How do I add (enable) the mail command in Ubuntu ?
Asked in: Ubuntu-Linux-Servers  (2 answers)
mohamad_kian's response: you can download MAILX from www.pkgs.org dpkg -i mailx-x-y.deb maybe you need dependence you can tyep apt-get install mailx
Can somebody tell me how to configure Hudson continous integration tool in CentOS Linux machine? We had installed it using war file+tomcat. Its running but we are not getting the build output. Please tell me how to set artifact file pattern for different file types like .jar,.war etc.....Is it possible to get build as zip file? If so please explain steps in detail.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: this site is good for you to help your work http://wiki.hudson-ci.org/display/HUDSON/Tomcat
Do you think that I should deviate from the stock Ubuntu Server partitioning scheme for a LAMP server ? I'm really not sure what the benefits are.
Asked in: Ubuntu-Linux-Servers  (2 answers)
mohamad_kian's response: you can do it it is beter for you you can install on /opt/new-directory whit a new size and new modification after you can easly to backup that and restore
what is difference between inetd and xinetd?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: inetd uses a single configuration file, with one line per service, while xinetd uses a configuration directory, with one file per service
I've changed the look but how do I change the logo over? Isn't it possible ? Thank you.
Asked in: Linux-Servers  (1 answers)
mohamad_kian's response: in home Squirrelmail you must have a file for logo you can change it with html code
I have around twenty remote servers that I frequently need to upload a new XML to and then restart a daemon afterwards. The basic commands are: scp SourceFile user@host:directory/TargetFile I can do /etc/init.d/daemon restart How would I wrap them into a script which would do each server one by one ? Would I need another file with IP addresses of the servers to reference ? A hundred points to you for a script that works and the best answer points too. Thanks.
Asked in: ShellScripts  (4 answers)
mohamad_kian's response: you can start service RSH and after you can update XML file from all server you must vi /etc/rhosts or /etc/host.equiv and add IP Host-Name after type cat new.xml |rsh server2 >/tmp/old.xml
Is this possible ? Thanks.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: you can type script and start work when your work is finish type exit you have 1 file by name "typesript" all work recorded
I have this config, does it look okay ? cache_mem 32 MB cache_dir ufs /var/spool/squid 100 16 256 coredump_dir /var/spool/squid/cache acl manager proto cache_object
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can set file type to save in your cache
Control-C and other Control keystrokes don't get me out of a telnet session properly. How do I do it ? Thank you for your help.
Asked in: Server-Networking  (5 answers)
mohamad_kian's response: i think you use a application connection in your application used CTRL+C for any process you can change that od unused that or in your server tarp for CTRL+C you can type trap " " SIGINT or trap " " 2
How do I generate an strace report for a developer ? I'm using Ubuntu Server 10.04 Lucid Lynx. Thank you.
Asked in: Ubuntu-Linux-Servers  (4 answers)
mohamad_kian's response: you can type this starce command 2>&1 |less or starce command 1>/tmp/debug 2>&1
Can anyone recommend a good Remote Desktop Protocol app for the iPhone, which I can use to connect to my Windows Server 2008 R2 installations? Preferably one that supports the Network Level Authentication, if that is possible when connecting from a non-Microsoft OS? Many thanks
Asked in: WindowsServers  (1 answers)
mohamad_kian's response: you can install RDP in ios
Can anyone recommend a good SSH client app which I can use to connect to my linux servers from my iPhone? Thanks
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: you can install ISSH in ios
How to install proftpd in centos linux and create users?
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: http://pkgs.org/centos-5-rhel-5/centalt-i386/proftpd-1.3.3e-2.el5.i386.rpm.html download rpm pakage an dependence and install rpm -ivh pakage-name or yum install proftp
What's usage of yes command and /dev/full ? I would be appreciate it if you explain them with an example.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: /dev/full is used for: 1 for in application for check when database is full and after application what do it. 2 you can type /dev/full > filename This parameter for a full home directory if you dont have quota you can full server.
How can I write a script which will tell me when /user is 80% full ?
Asked in: OtherProgramming  (1 answers)
mohamad_kian's response: vi screipt #!/bin/bash X=`>df -h |grep doc |cut -f20 -d" " |tr -d "%"` if [ $X -le "80" ] then echo "/usr is full" |mail -s EMERGENCY admin echo "/usr is full" |wall root fi and vi corntab and set the scipts run at time
I use Ksplice to keep my kernel reboots to a minimum from www.ksplice.com but I'm not sure how long I should comfortably leave it between reboots. Any suggestions ?
Asked in: RedHat-Linux-Servers  (1 answers)
mohamad_kian's response: It is way to upgrade kernel without reboot system but befor used this backup from system if have problem you can roulback to last kernel
Why is tracepath (which only shows MTU stuff on top of traceroute from what I can tell) installed by default in most distros and traceroute isn't ?
Asked in: UnixServers  (1 answers)
mohamad_kian's response: in exec out if difrence beetwin but you can use mtr to trace route and see lost packet
I've only ever registered 32bit instances on Amazon EC2 before and need to change: --architecture i386 to reflect 64bit using the ec2-register command. Any takers ?
Asked in: Cloud-Servers  (2 answers)
mohamad_kian's response: you can install pakage from source and in counfigure option have to change architect
Can someone please help me to create a compressed file for three home directories ? I know how to use tar and gzip but can't zip up three home directories in a script. If I could run it in Cron and then download the file every day manually that would be great. Thank you, I will give 100 of my points.
Asked in: ShellScripts  (4 answers)
mohamad_kian's response: you can type this cd /home tar cvf home-backup-date user[1-100] or find /home |cpio -i >/hdd/home-backup-date
Is it possible to ban a sender on the number of errors at the HELO initialisation ?
Asked in: Email-Servers  (2 answers)
mohamad_kian's response: less /var/log/messages and in config file set log file too see error
How do I find out which packages support TCP wrappers ? I know SSH does but what about others ? Thanks in advance.
Asked in: RedHat-Linux-Servers  (6 answers)
mohamad_kian's response: can see /etc/service in this file can find whitch service tcp
I'm seeing this NTP error a lot on a server: Requested time correction of 1208 seconds exceeds sanity limit. You must set the clock manually to correct this. It's beginning to get tiresome. How can I workaround it ?
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: vi /etc/ntp/ntp.conf /etc/init.d/ntpd start for set time u can type rdate -s IP-Address
I didn't know OpenSuse used RPMs and I realise it's unlikely that they're Redhat compatible but are there major differences ? Would it be possible to port one over without too much work ?
Asked in: Suse-Linux-Servers  (4 answers)
mohamad_kian's response: in install package if dont have dependence you can type this rpm -Uvh --force package.rpm
I want to write my own backup script but I'm not confident I'll back up everything I need.
Asked in: RedHat-Linux-Servers  (4 answers)
mohamad_kian's response: cd / find bin home root boot lib opt sbin tmp etc usr var |cpio -i >/haddisk/file-date
Can anybody please suggest a few alternatives for me to look at ?
Asked in: Fedora-Linux-Servers  (4 answers)
mohamad_kian's response: sendmail work with mysql but you need other DB you must change config file
I have this line in my PHP script which removes dodgy characters from user input: $var = str_replace(array(":", "'", ".", "!", "$", "", "/", "=", "+"), "", $var); I'd like to add a backslash to that group of characters but adding "\", to the array breaks the script. I've tried "/", too. Any ideas ? Thanks.
Asked in: OtherProgramming  (2 answers)
mohamad_kian's response: for "\" you can use "\\"
Why can't I find the file /etc/xinetd.conf in fedora 14? Anybody have an idea at the reason?
Asked in: Fedora-Linux-Servers  (3 answers)
mohamad_kian's response: some of linux have INETD xinetd in redhat and inetd in debian if inetd dont have you dont install service xinetd rpm -qa |grep xinetd
I need to change any occurrences of RTG78 in several files at once ? Thanks !
Asked in: ShellScripts  (4 answers)
mohamad_kian's response: you can use SED command sed 's/search-string/string-to-change/g' file-name >new file
Which UPS should I use in a rack ? How big should it be for three Dell R610s ? Thanks.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: one ups rackmounted is not enough ac for server rack
How do I format a read-only USB stick which is connected to my remote server ? I'm stumped ! Thanks.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: you cant alias rmount=" \ read PART \ mount -r /dev/$PART /mnt "
Any recommendations for easy to use blog software that I can run on a LAMP set up ? Thanks.
Asked in: OtherProgramming  (2 answers)
mohamad_kian's response: it's good site http://www.w3schools.com/php/
I'm seeing this NTP error a lot on a server: Requested time correction of 1208 seconds exceeds sanity limit. You must set the clock manually to correct this. It's beginning to get tiresome. How can I workaround it ?
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: Maybe your BIOS time is not set properly or is ahead of your system time. Check the time in your BIOS and then set it correctly.
I use an NTP server (S300) in my company. But in the second half of every year our clock changes by about an hour. All of our servers use the time NTP server to sync their time. I don't know how can I change the clock to an exact time so the new time will be use for 6 months. Please help if you can.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: rdate -s 132.163.4.101 Set time with a time server in swis you cant change that ip to others server
I've use this command: chmod g+s dir because the new files that I want to create must inherit their parent group. I did it and it works. But when I use the ll command, for some directories it shows "s" and some of them "S" . I dont know - do they differ or not ? Please guide me. Thanks.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: "s" is when your file has got execute permissions. "S" is when your file doesn't have execute permissions.
My CPU is suddenly running at full pelt What does the wa value mean in top ? My CPU is at 100% and top says that wa is using it all. Help appreciated.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: in top view all app in process view what process get a lot of cpu u can kill it and run again with starce to why get a lot of cpu
Can anybody point me at some decent DNS management software ? I don't want to learn DNS but need to use it occasionally. Can I install a GUI web interface for an easy way to control DNS ? Thanks.
Asked in: Suse-Linux-Servers  (2 answers)
mohamad_kian's response: webmin is web-controler install this and open port 10000 in internet browser localhost:10000 you can config all services
I need to check information on xt_state and xt_limit but can't find their man pages. Any ideas ?
Asked in: Server-Firewalls  (2 answers)
mohamad_kian's response: i think this site is good for your qusetion http://wiki.openvz.org/Setting_up_an_iptables_firewall
I wrote a server-client socket program to fix a problem that I've faced. Sometimes my server side doesn't get packets from client side though. I've been told I should track it by "nc -l [port-No]" which this command doesn't work in my Ubuntu 10.10. 1: Is there another way to listen my server side and send packet to that side? 2: how can I do correct my nc -l [port-No]?
Asked in: Server-Networking  (5 answers)
mohamad_kian's response: you can use nmap for what port is open and can use ntop/tcpdump/iftop/ngrep ,....
I have a new way of logging Apache hits in tandem with existing logs that will grow far more rapidly than those already set up. Can I just copy logrotate files for other daemons ? Do I have to start and stop anything ? Thanks.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can write shell script and run in crontab when your file's size grater than for example 2M cp to other path and delete last file and create new file >file
Please enter kill -l in bash and probe number of signals. What has happened to the 32 and 33 kill signals ?
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: signal 32 ,33 is undocumented only a person work many time with linux know this question
I'm trying out Gentoo and just got this error, I'm glad it's not a critical server ! What could be causing this kernel problem at boot time ? VFS: Cannot open root device "sda1" or unknown-block(1,0) Please append a correct "root=" option Kernel panic - not syncing VFS: Unable to mount fs on unknown-block(1,0) Thanks very much.
Asked in: Gentoo-Linux-Servers  (3 answers)
mohamad_kian's response: when boot system edit grub type "e" too edit mode for example root (hd0,1) kernel /boot/vmlinuz..... initrd /boot/initram.... edit root line to root (hd0,0) and ok then type "b" to boot system
Sometimes nmap doesn't pick up ports that I know are open and firewalling is off for the IP I scan from. What could cause this ? What command line should I use to make it more reliable ? Thank you.
Asked in: Server-Networking  (2 answers)
mohamad_kian's response: you can use switch without ping namp cant listen port with out ping server
I've heard about tcpdump but it looks tricky and I'm new to networking. Any other network sniffers that run on the command line on Linux that are easier to learn ?
Asked in: Server-Networking  (2 answers)
mohamad_kian's response: in gui wireshark is good sniffer and in textbase tcpdump
I have a new Server - SSH logins work but take forever to start up. My bandwidth is fine. I can't begin to guess what it is. 50 of my points available for help, it's driving me nuts.
Asked in: Server-Networking  (8 answers)
mohamad_kian's response: 1 maybe you change encrypting ssh 2 maybe your network have problem for example many roules for iptables 3 your switch when read data encrypt slower send data 4 in your network have a spyware to listen network
How is shutdown -r now different to reboot?
Asked in: Suse-Linux-Servers  (3 answers)
mohamad_kian's response: no different in shutdown -r now and reboot all command run init 6
I messed arround with armagetronad, then I wanted to remove it and I got this error: # sudo apt-get remove armagetronad Reading package lists... Done Building dependency tree... Done E: The package armagetronad needs to be reinstalled, but I can't find an archive for it. Now every time I want to use apt-get for anything I can't: # sudo apt-get install supertux Reading package lists... Done Building dependency tree... Done E: The package armagetronad needs to be reinstalled, but I can't find an archive for it. Can anyone help me workaround this problem, its driving me nuts?
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: your apt-get repository maybe if damge you can rebuilde repository file from /etc/apt/apt.conf
I've just downloaded ubuntu-10.04.2-dvd-i386.iso from: http://cdimage.ubuntu.com/releases/10.04.1/release/ The download list includes a list of MD5SUMS, in particular for my ISO; e1b88a1d9cc625ce45bb26fba8fa855c *ubuntu-10.04.2-dvd-i386.iso My question is, should I be checking the MD5SUMs on ISO downloads, and if so, how?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: if in download any problem you dont have this md5 for check md5 you can type: md5sum file-name and tell to you hashed and file name
I can set up AllowUsers in sshd_config to only allow certain people to log in but is there a an equivalent AllowGroup ? If so how does it work ? It would be easier to admin I think.
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: in /etc/ssh you can create ssh.access and ssh.deny and set user can ssh in server
Rather than ARP broadcasting and checking with arp -a are there any quicker ways to probe who is uses which MAC addresses on a LAN without causing the server to get much busier ? Thanks.
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: you can start service arpwatch after 2-3days you have a databse from all client ip,mac ,computer name ,ethernet model if any computer change any parameter you have mail
How can I automatically logout users logged into the console on my server ? When I type w I can see some users logged in for weeks sometimes. I'd like it to be ten minutes of them doing nothing in the console. Thank you.
Asked in: UnixServers  (2 answers)
mohamad_kian's response: vi /etc/profile end line write: if [ $USER != "root" ] ; then TMOUT=secends ;fi
I can't see how to load up bashrc on FreeBSD. Is it different than Linux ? I don't have root access.
Asked in: UnixServers  (2 answers)
mohamad_kian's response: in home directory have 2 files .bashrc and .bash_profile these files are hiden file ls -a u can see these files
I don't understand why people use FreeBSD over Linux ? Any pointers please ?
Asked in: UnixServers  (2 answers)
mohamad_kian's response: freeBSD from BSD family for Bearkly Unucersity this is best os for network service for example squid dns dhcp ... linux is Developed all distro unix BSD minix ,....
Every 1 day or 2 days my centos 5.6 64bit server is shutdowning all the webservices why? Please help me i'm getting this problem after upgrading to 5.6 from 5.5. And please help me the best webserver linux distro for beginners to run large wordpress website. My Server Hardware: AMD Phenom II X6 16GB DDR-III RAM 2x500 GB SATA3 (Raid-Mirror) server runs only apache,php,mysql , pure-ftp and postfix help me to fix or changing os to user friendly
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: you can see /var/log/messages or vi /etc/syslog.conf and add this line *.* /var/log/messages-new and save touch /var/log/messages-new /etc/init.d/syslogd restart
Can someone please help me choose ? I heard some people still use i386 for their hardware because AMD64 userland changes when you user AMD64 hardware. Is that correct ?
Asked in: Linux-Servers  (5 answers)
mohamad_kian's response: Server 64bit is beter because i386 max ram support 4gig
I'm starting to see some write timeout errors in /var/log/messages. Is it definitely the end for the drive do you think ? How do SMART tests work ?
Asked in: Linux-Servers  (4 answers)
mohamad_kian's response: smartctl -a /dev/hdXY smartctl -a /dev/sdXY X=a-z Y=1-64 if your hard is ide line 1 or sata line2
My netcat (nc) doesn't listen! It means when I write nc -l 3333, I can't communicate data with nc 127.0.0.1 3333 in another terminal! Also after writing nc -l 333, I don't see port 333 between the ports which are listening, by netstat -ln | grep 3333. What should I do? Thank you!
Asked in: Linux-Servers  (9 answers)
mohamad_kian's response: you can see /var/log/messages then see error
Is it possible on a running machine without a reboot ? I think an older Windows server I used needed a reboot afterwards.
Asked in: UnixServers  (2 answers)
mohamad_kian's response: you can type this comands create image needed to use with dd comand then mkswap filename then swapon filename if you need this file for evrytime is up you must edit /etc/fstab and add address file on swap
Sometimes dmesg gets full of junk and I want to add something to the end. I know logger works with syslog but what about writing to dmesg so the last few entries are no longer junk ? Thanks in advance for any help.
Asked in: ShellScripts  (5 answers)
mohamad_kian's response: dmesg only for bios and u cant write in dmesg
I have two identical drives in my new server and I'm going to put Ubuntu on it. What's the most reliable RAID config for automatically running off the other drive if a drive fails ? I've never used RAID before. Cheers for any help.
Asked in: Ubuntu-Linux-Servers  (6 answers)
mohamad_kian's response: you can type lsmod |grep network/eth/wlan if don have you must install network driver
What directories should I back up in Ubuntu Server ? I can then move the backup offsite.
Asked in: Ubuntu-Linux-Servers  (3 answers)
mohamad_kian's response: you can backup with cpio cd / find home etc bin opt usr root .... | cpio -i >/tmp/backup-`date`
The default Cron time for MRTG is five minutes which generates the top graphs as five minute averages. Is that the way to get the best accuracy for stats ? Or should I lower it ?
Asked in: Gentoo-Linux-Servers  (2 answers)
mohamad_kian's response: you can edit cron crontab -e edit 5 to any time and service crond reload
Can someone please explain the differences ? There's a lot of debate about this subject it seems !
Asked in: Fedora-Linux-Servers  (5 answers)
mohamad_kian's response: fedora for user and centos for server and redhat for best server fedora and centos dont need repository for update because have miror but rhel if you dont have rhnetcod cant update system
I want to run IPtables but if I write my own long script it will probably be full of newbie mistakes. Can you recommend any scripts that are a good place to start off ? Cheers.
Asked in: Server-Firewalls  (3 answers)
mohamad_kian's response: in iptables u first drop all roules then any port and ip to need open iptable action ip port
Can I literally lock every port down other than 80 and 22 if that's all I'm running ? No other ports need to be open by IPtables ? Thank you.
Asked in: Server-Firewalls  (2 answers)
mohamad_kian's response: you can iptables drop all and then accept on input or output frpm port 22,80
I've got so many problems running Centos 5.5 /5.6 64 bit on my server. I need a Linux server distro which can handle Apache, Mysql & PHP perfectly. Can anyone please urgently off any advice ?
Asked in: Server-Networking  (5 answers)
mohamad_kian's response: I use rhel6 64bit and dont have any problem u can instal enterprise os
What's the very easiest way of graphing CPU usage on my server ? I need to know which times of day are busy but am new to Linux. Thank you very much for your assistance.
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: monitor on graphical conky , gkrellm , gnome-system-monitor , in tex base u can us best app for example top , htop , atop , ps -aef , ....
I want to make two networks (one local and one public) in MAC OS server. How can I do this ?
Asked in: Server-Networking  (3 answers)
mohamad_kian's response: you can use iptables for your network you can drop or reject or accept for service in ip range
How do I change the language settings on Ubuntu Server ? Thank you.
Asked in: Ubuntu-Linux-Servers  (3 answers)
mohamad_kian's response: you can change variable LANG if u install other lang u can type LANG=language
My client appears to connect to my new PPTP VPN on Ubuntu Server, but the tunnelled connection just doesn't work. I can't see any files and it drops out after a connection of around 30 seconds. I'm pretty new to VPNs - any ideas why this might be ? I've run through lots of docs.
Asked in: Ubuntu-Linux-Servers  (1 answers)
mohamad_kian's response: you can less /var/log/messages CTRL+F then run service and pptp to your server and read error and debug vpn server
I'm writing a script run by sudo for non-root users so they can add a user to the system. Where do I set the home directory field though ? I can't find it ! Thank you.
Asked in: ShellScripts  (3 answers)
mohamad_kian's response: you can vi /etc/profile end on file write if [ $USER != "root "] then your shell scrept fi
Please help me. I forget password root in Fedora.
Asked in: Fedora-Linux-Servers  (6 answers)
mohamad_kian's response: you can when system boot edit grub and edit line then kernel fisrt writen to line edit this line and end of line write single then ok and click "b" to boot system in runlevel 1 your system boot in single user and can change password without pass password
I'm using this command at the moment: find . -size +500000 -print but it isn't very refined. How else can I track down large files on my filesystem ?
Asked in: ShellScripts  (4 answers)
mohamad_kian's response: You can use this command: find . -size +500M -ls |sort -k(find of sort)
I need to delete all files that end .gif and somewhere in the name have "RFJ". There are hundreds of other files and some also have RFJ in their name. There's loads of subdirectories too. I can't risk deleting live image files because it's a web server and a restore from the backups will take time. Any help would save me a heap of trouble !
Asked in: ShellScripts  (4 answers)
mohamad_kian's response: You can run this command: find partition -iname "*rfg*gif" -exec rm [switch] {} ;
I'm new to Fedora. Where does it save the IPtables rule sets ? I can only find these files ! /etc/init.d/iptables and /sbin/iptables Thanks for any help.
Asked in: Fedora-Linux-Servers  (4 answers)
mohamad_kian's response: In IPtables don't have config file you must creat a file and write roll your policy. first iptables -L first drop all input,forward,output and then set port and ip can go in network.
How do I stop local users having more than 12 characters in their login passwords ? Thanks !!
Asked in: Ubuntu-Linux-Servers  (4 answers)
mohamad_kian's response: Try: vi /etc/security/limits.conf @USERID maxlogins number-of-logins
I'm locked out of a root account on a server running Ubuntu server but have a local user login working without privileges. I have physical access to the server even though it's in a data centre. How can I get root access ?
Asked in: Ubuntu-Linux-Servers  (5 answers)
mohamad_kian's response: You must boot system with live cd: mount partiton / to directory /mnt vi /mnt/etc/shadow and delete hashed password root save restart system your root system dont have password you can set password without current password.
How do I stop local users having more than 12 characters in their login passwords ? Thanks !!
Asked in: Ubuntu-Linux-Servers  (4 answers)
mohamad_kian's response: Use vi /etc/login.defs and change thid parameter PASS_MIN_LEN 5
I'm locked out of a root account on a server running Ubuntu server but have a local user login working without privileges. I have physical access to the server even though it's in a data centre. How can I get root access ?
Asked in: Ubuntu-Linux-Servers  (5 answers)
mohamad_kian's response: What about ? vi /etc/login.defs PASS_MIN_LEN 5
I am new to Linux world and I need help in understanding yum server.
Asked in: RedHat-Linux-Servers  (3 answers)
mohamad_kian's response: You can add repository from cent os/epel/rpmforge,...... add repository and can use yum
I have a remote server and I can't eject the CD in the drive or unmount it. Why would that be ? I haven't used Linux much before. Thank you for helping.
Asked in: RedHat-Linux-Servers  (5 answers)
mohamad_kian's response: You can type: umount -l /dev/cdrom or eject /dev/cdrom
I want to setup Squid proxy server on my Centos based linux server ! What's the easiest and best way to do that ?
Asked in: CentOS-Linux-Servers  (3 answers)
mohamad_kian's response: You can set port 3128 in /etc/squid.conf and /etc/init.d/squid start this is MIN config for start service.
I have about two hundred users that I need to give FTP access for image uploads. I can't use sFTP unfortunately. Can I secure FTP so passwords aren't in cleat text ? Any ideas how to load balance and make it more available with a few servers? Thanks.
Asked in: CentOS-Linux-Servers  (3 answers)
mohamad_kian's response: You can use sftp but your system service ssh start: sftp -l USERID IP-ADDRESS
I've looked at Clonezilla and a few others but the ones I've found seem to need a CD in the drive of the server to restore the data. Any decent cloning software that doesn't need that and I can run over a live CentOS server ?
Asked in: CentOS-Linux-Servers  (6 answers)
mohamad_kian's response: CentOS rescue is mini cd and you can rescue disk boot system and chroot /mnt/sysimage then you can restore system.
After I updated my CentOS box, it was a yum update and now Apache won't start web services ... The error from directadmin is: Starting httpd: Apache configuration directives found [FAILED]
Asked in: CentOS-Linux-Servers  (5 answers)
mohamad_kian's response: You must check /var/log/messages and read eroor for apache why dont start.
I've got an old XP box I use as a simple LAN server. I'm considering switching to Ubuntu, but hit a snag on install when trying to get the network driver working. It's like Ubuntu doesn't recognise or load the driver. How can I fix this?
Asked in: Ubuntu-Linux-Servers  (3 answers)
mohamad_kian's response: first lsmod and check your device is running or not. If it's running then sudo and: /sbin/ifconfig wlan0 "or" eth0 ipaddress
How do I alter which port SSH runs on to stop port 22 spam traffic?
Asked in: Debian-Linux-Servers  (2 answers)
mohamad_kian's response: vi /etc/sshd_config #Port 22 change to Port 220 save file /etc/init.d.sshd restart
I'm new to Dovecot and Squirrelmail. It's definitely running and port 143 is open. Any ideas ?
Asked in: Email-Servers  (3 answers)
mohamad_kian's response: check your server that support IMAP or not after try to login with telnet Your-IP port(143)
My Apache installation bombs out three or four times a day. Can I diagnose this somehow ? Thanks.
Asked in: Debian-Linux-Servers  (3 answers)
mohamad_kian's response: you can type this strace /etc/init.d/httpd start and read all systemcall and library for start afret do work to crash apache and see error on terminal you can see log file apatche in /var/log
Is there a list I can refer to ? It's annoying I have to specify exact hardware and I could do with some clues ! Thanks in advance for assistance.
Asked in: Virtual-Machines-Servers  (2 answers)
mohamad_kian's response: you can see this site for minimum system for ESX/ESXi http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003661
I get this from SCP and SSH in a script: Pseudo-terminal will not be allocated because stdin is not a terminal Any thoughts ?
Asked in: ShellScripts  (2 answers)
mohamad_kian's response: see this http://www.unix.com/unix-advanced-expert-users/26124-pseudo-terminal-will-not-allocated-because-stdin-not-terminal.html
what is meaning of LD , CC during make bzImage command in compiling kernel?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can see this site http://pc.autons.net/stuff/kernel-compile-slowdown.phtml cc means gcc ld combines a number of object and archive files, relocates their data and ties up symbol references. Usually the last step in compiling a program is to run ld.
Can I switch off the yes/no question in SCP when I connect to a new server ?
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you can type shell script to automoticaly scp for example : for i in `cat ~/file_list` do scp $i user@remote-server:/~ done;
I get weird errors when I try and start a new install of named: /etc/named.conf: unknown option 'zone' /etc/named.conf: unknown option 'logging' Any help appreciated.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: you canf type find / -name named.conf after diff named.conf1 named.conf2 and fixed it if dont find other see it http://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=4330&forum=31
what is difference between inetd and xinetd?
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: inetd uses a single configuration file, with one line per service, while xinetd uses a configuration directory, with one file per service
What's usage of yes command and /dev/full ? I would be appreciate it if you explain them with an example.
Asked in: Linux-Servers  (3 answers)
mohamad_kian's response: /dev/full is used for: 1 for in application for check when database is full and after application what do it. 2 you can type /dev/full > filename This parameter for a full home directory if you dont have quota you can full server.
How can I write a script which will tell me when /user is 80% full ?
Asked in: OtherProgramming  (1 answers)
mohamad_kian's response: vi screipt #!/bin/bash X=`>df -h |grep doc |cut -f20 -d" " |tr -d "%"` if [ $X -le "80" ] then echo "/usr is full" |mail -s EMERGENCY admin echo "/usr is full" |wall root fi and vi corntab and set the scipts run at time
I didn't know OpenSuse used RPMs and I realise it's unlikely that they're Redhat compatible but are there major differences ? Would it be possible to port one over without too much work ?
Asked in: Suse-Linux-Servers  (4 answers)
mohamad_kian's response: in install package if dont have dependence you can type this rpm -Uvh --force package.rpm
Why can't I find the file /etc/xinetd.conf in fedora 14? Anybody have an idea at the reason?
Asked in: Fedora-Linux-Servers  (3 answers)
mohamad_kian's response: some of linux have INETD xinetd in redhat and inetd in debian if inetd dont have you dont install service xinetd rpm -qa |grep xinetd
How can I automatically logout users logged into the console on my server ? When I type w I can see some users logged in for weeks sometimes. I'd like it to be ten minutes of them doing nothing in the console. Thank you.
Asked in: UnixServers  (2 answers)
mohamad_kian's response: vi /etc/profile end line write: if [ $USER != "root" ] ; then TMOUT=secends ;fi
What's the very easiest way of graphing CPU usage on my server ? I need to know which times of day are busy but am new to Linux. Thank you very much for your assistance.
Asked in: Linux-Servers  (2 answers)
mohamad_kian's response: monitor on graphical conky , gkrellm , gnome-system-monitor , in tex base u can us best app for example top , htop , atop , ps -aef , ....
My client appears to connect to my new PPTP VPN on Ubuntu Server, but the tunnelled connection just doesn't work. I can't see any files and it drops out after a connection of around 30 seconds. I'm pretty new to VPNs - any ideas why this might be ? I've run through lots of docs.
Asked in: Ubuntu-Linux-Servers  (1 answers)
mohamad_kian's response: you can less /var/log/messages CTRL+F then run service and pptp to your server and read error and debug vpn server
I'm writing a script run by sudo for non-root users so they can add a user to the system. Where do I set the home directory field though ? I can't find it ! Thank you.
Asked in: ShellScripts  (3 answers)
mohamad_kian's response: you can vi /etc/profile end on file write if [ $USER != "root "] then your shell scrept fi
I'm locked out of a root account on a server running Ubuntu server but have a local user login working without privileges. I have physical access to the server even though it's in a data centre. How can I get root access ?
Asked in: Ubuntu-Linux-Servers  (5 answers)
mohamad_kian's response: You must boot system with live cd: mount partiton / to directory /mnt vi /mnt/etc/shadow and delete hashed password root save restart system your root system dont have password you can set password without current password.
I have a remote server and I can't eject the CD in the drive or unmount it. Why would that be ? I haven't used Linux much before. Thank you for helping.
Asked in: RedHat-Linux-Servers  (5 answers)
mohamad_kian's response: You can type: umount -l /dev/cdrom or eject /dev/cdrom
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle