Browsing articles tagged with "ubuntu - Admins Goodies"
Feb 11, 2013
tom

How do I check that a user password is locked?

I used: usermod -L myUser to disable the password for this account. Assuming that I don’t know the password how do I check that it has been disabled. According to the man page it places ! in the front of the encrypted password, but I don’t know how to check that either. Asked by DarkSheep You can use the passwd utility to look at the status of the user’s password entry passwd -S user user [...]

Continue Reading »
Jan 26, 2013
tom

ssh knoppix v7 / ubuntu v12 live CD

Using any Live CD possible to do ssh? If yes kindly share the step. I have use Ubuntu v12 after booting in live mode $ sudo bash # apt-get install openssh-server # /etc/init.d/ssh restart or service ssh restart Error say unrecognized service Asked by neolix Step 1 use “clonezilla Live CD” Step 2 boot using Clonezilla Live CD Step 3 Choose language in Clonezilla live Step 4 Keyboard selection in clonezilla live Step 5 Enter [...]

Continue Reading »
Jan 23, 2013
tom

Adding Additional RAID Array to Ubuntu 11.10 x64 Server

I asked this on askubuntu.com as well but since it’s a server question, figured I’d throw it on SF, too. Haven’t run into this situation before but it seems simple enough. Looking for advice/guidance on the following issue. I have an Ubuntu 11.10 64-bit server that is configured with 2 identical hard drives in a RAID-1 through the mdadm utility. It’s a simple LAMP server that runs a few projects I’m working on but is [...]

Continue Reading »
Jan 23, 2013
tom

MySQL Error – Can’t connect to local MySQL server through socket

Sometimes on my VPS I get the error Warning: mysql_pconnect(): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (111) in /var/www/mysql.php on line 8 It can be solved by restarting MySQL several times, restating the sever or sometimes using mysqld command. Using the mysqld command I get the following: root@web:~# mysqld 130109 10:47:23 [Note] Plugin ‘FEDERATED’ is disabled. 130109 10:47:23 InnoDB: The InnoDB memory heap is disabled 130109 10:47:23 InnoDB: Mutexes and rw_locks use [...]

Continue Reading »
Jan 21, 2013
tom

How to set memory limit on OS level to overcome problems with “Burstable memory service”?

I have VPS. It has Burstable memory service. My guaranteed memory limit is 1GB. I want linux not to take more that 1GB to programs on OS level. How to do it? It is ubuntu server. Asked by Zango I don’t believe this is possible. If this were possible, it would require kernel tweaks, which isn’t an option in your case due to the fact that you’re running an OpenVZ and as such, don’t have [...]

Continue Reading »
Jan 19, 2013
tom

Ubuntu – VirtualBox instllation issues [closed]

I’m new to linux. I’m trying to install VirtualBox in my Ubuntu 12.04 but while installing from terminal the installation stopped with the below error. http://pastebin.com/6d3Ux9qG So I tried to install it from Ubuntu Software center, but it tells me that it got corrupted and run apt-get install -f in the terminal. http://pastebin.com/G43gHBaa “This should NOT be done unless you know exactly what you are doing! python-minimal python2.7-minimal (due to python-minimal)” When I did that [...]

Continue Reading »
Jan 19, 2013
tom

Connecting to samba ubuntu server from linux

In these days I’m setting up a small network with about twenty computers. The users of this network used windows before (now they use linux mint) and they need to access samba ubuntu folders simply using their name (which is same as their login) and password (there’s no problem for them with typing access data). In that case I need the simplest way for them to access it. I was thinking of using links (I [...]

Continue Reading »
Jan 18, 2013
tom

Why Kernel Shared Memory is 0 on Ubuntu 12.04

Can any one explain to me why KSM is not working does that mean that currently my kernel is not utilizing KSM for less ram utilization. grep KSM /boot/config-3.2.0-23-generic CONFIG_KSM=y cat /sys/kernel/mm/ksm/pages_shared 0 cat /sys/kernel/mm/ksm/pages_sharing 0 cat /sys/kernel/mm/ksm/pages_unshared 0 Kernel:3.2.0-23-generic Ubuntu 12.04 LTS 64 bit Desktop free -m total used free shared buffers cached Mem: 1964 1883 81 0 11 228 -/+ buffers/cache: 1644 320 Swap: 2008 485 1523 ipcs -m —— Shared Memory Segments [...]

Continue Reading »
Jan 9, 2013
tom

Ubuntu unattended upgrades to run at a certain time

I’m trying to work out the best way to run unattended upgrades every Thursday at 3am but can only see a way to run this weekly but not a given time. I thought of one way would be to have a script that is called by cron on Thursday at 3am The below script would work just for security updates #!/bin/sh sh -c ‘grep precise-security /etc/apt/sources.list > /etc/apt/secsrc.list’ sh -c ‘apt-get -o Dir::Etc::sourcelist=”secsrc.list” \ -o [...]

Continue Reading »
Jan 7, 2013
tom

Why is Varnish not caching my index page properly?

I have a Varnish set up in front of Apache 2 on Ubuntu 11.10. I’m using this VCL file: backend default { .host = “127.0.0.1″; .port = “8080″; }sub vcl_recv { if (req.url ~ “^/web”) { unset req.http.cookie; } if (req.url ~ “administration” || req.url ~ “preview” ) { return(pass); } if (req.http.Cookie) { set req.http.Cookie = “;”+req.http.Cookie; set req.http.Cookie = regsuball(req.http.Cookie, “; +”, “;”); set req.http.Cookie = regsuball(req.http.Cookie, “;(mag_header)=”, “; \1=”); set req.http.Cookie = [...]

Continue Reading »
Pages:1234567...312»