Is it possible to create a symlink to a directory, like /var/lib/tomcat6/webapps/MyWar that I can access from everywhere? I want to be able to say cd myapp from anywhere in the directory tree and go to that directory. Is it only possible in the directory where I create the symlink?
Do I have to update my ~/.bashrc file to include an alias like: alias myapp="cd /var/lib/tomcat6/webapps/MyWar" and then just type myapp from anywhere? What is the best way to handle this situation so I don't always have to type in the long directory? I also want to be able to use that parameter in say a copy command, so the alias wouldn't help in that situation. Hopefully I can do something similar where ~ maps to the home directory in any command.
I have had a few problems getting windows 7 pc's to join my samba domain.
The reason I've gathered is because the samba server software is outdated.
What is involved in updating to the newest 3.5.x from the version that comes with 8.04ltr
are there any pitfalls i should know about.
what about very detailed instructions (I'm still learning Linux in general)
I've followed several tutorials on installing your own nameservers and I'm pretty much at my wit's end, because I cannot get them to resolve. Note, the actual domain and ip address has been changed for privacy to example.com and 192.168.0.1. My named.conf.local file:
zone "example.com" {
type master;
file "/var/cache/bind/example.com.db";
};
zone "0.168.192.in_addr.arpa" {
type master;
file "/var/cache/bind/192.168.0.db";
};
My named.conf.options file:
options {
forwarders {
192.168.0.1;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
My resolv.conf file:
search example.com.
nameserver 192.168.0.1
My Forward DNS file:
ORIGIN example.com.
$TTL 86400
@ IN SOA ns1.example.com. root.example.com. (
2012083101 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
3600 ) ; Negative Cache TTL
example.com. NS ns1.example.com.
example.com. NS ns2.example.com.
example.com. MX 10 mail.example.com.
@ IN A 192.168.0.1
ns1.example.com IN A 192.168.0.1
ns2.example.com IN A 192.168.0.2
mail IN A 192.168.0.1
server1 IN A 192.168.0.1
gateway IN CNAME ns1.example.com.
headoffice IN CNAME server1.example.com.
smtp IN CNAME mail.example.com.
pop IN CNAME mail.example.com.
imap IN CNAME mail.example.com.
www IN CNAME server1.example.com.
sql IN CNAME server1.example.com.
And my reverse DNS:
$ORIGIN 0.168.192.in-addr.arpa.
$TTL 86400
@ IN SOA ns1.example.com. root.example.com. (
2009013101 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
3600 ) ; Negative Cache TTL
1 PTR mail.example.com.
1 PTR server1.example.com.
2 PTR ns1.example.com.
Yet, when I restart bind9 and do:
host ns1.example.com localhost
I get:
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:
Host ns1.example.com.example.com not found: 2(SERVFAIL)
Similarly, for:
host 192.168.0.1 localhost
I get:
;; connection timed out; no servers could be reached
Anybody know what's going on? Btw, my domain name "www.example.com" that I've used in this question is being forwarded to my ISP's nameservers. Would that affect my bind9 configuration? I want to learn how to do set up nameservers on my own for learning, so that is why I'm going through all this trouble.
Hello
I'm trying to install a new LaCie Hard Disk design by Neil Poulton 1TB USB 2.0
GParted reports
/dev/sda1 (with exclamation mark and key sign) ntfs 1 KiB
unallocated 320 MiB
/dev/sda2 hfs+ 2.84 MiB
unallocated 931.2 GiB
When trying to create a partition with Disk Utility it says
Daemon is inhibited
It seems I can't create the partition that way. Can you recommend how I can proceed?
Thank you
I am trying to connect to my webserver via ssh but I can't. When I insert the password nothing happens . This is what I see:
# ssh [email protected][email protected]'s password:
Why ? In iptables there are no rules. Please help :(
I am using a usb2serial port to communicate with some old equipment (using my code built upon the boost asio library - I think my code is fine because it works almost all of the time).
Every so often (maybe once every few days) the communication stops with my device with no error at all - the device just does not respond. I then restart my computer and everything is fine again.
Does anyone know where I can start to analyse this problem? My serial port loads up fine (in /dev/ttyUSB0) and the boost library does not throw an error. The device just does not respond. If I restart the device no change - only when I restart my pc does it make a difference. I have also tried unplugging and replugging the usb connector.
Does anyone know what gets cleared in the reboot (w.r.t the serial device) or what I can probe when the problem happens again (rather than just restarting with hope)
I'd like a simple and secure system to have allow users in our network to have their account (e.g., 'myname') work on every machine in the network (e.g., such that they could ssh to any machine and have the same userid, mounted smb share). Any suggestions?
I am new to UNIX and can't figure out how to use the 'quota' command to see my disk usages. So I install “quota” using the following command
sudo apt-get install quota
But when I type in the command quota -v or anything similar, it doesn’t show anything. According to most website online (http://acs.ucsd.edu/students/quota.shtml#check-remove) , it suppose to show me all the quota limitation when I type in quota -v. can you please tell me how can I make it work or if I am doing something wrong here. your help is greatly appreciated. Thanks.
I have the following Graphics card info:
>lspci | grep VGA
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter (rev 10)
And I need to enable compiz, even with less moves :), How can I?
Hello all. Subject really says it all. When I try to click on any track, Amarok rapidly moves through the playlist, pulling external information (wikipedia etc) for each song, but not playing it. I feel like it might be a problem with my sound card or driver or something, but all other media players work fine. I can play sounds from within Amarok when I test different sound devices (they all play). I removed the program and re-installed it and still no luck. Any ideas?
Hello all. Subject really says it all. When I try to click on any track, Amarok rapidly moves through the playlist, pulling external information (wikipedia etc) for each song, but not playing it. I feel like it might be a problem with my sound card or driver or something, but all other media players work fine. I can play sounds from within Amarok when I test different sound devices (they all play). I removed the program and re-installed it and still no luck. Any ideas?
I installed the apache dev headers:
sudo apt-get install apache2-prefork-dev
Downloaded and compiled the module as outlined here: http://tn123.ath.cx/mod_xsendfile/
Added the following line to /etc/apache2/mods-available/xsendfile.load:
LoadModule xsendfile_module /usr/lib/apache2/modules/mod_xsendfile.so
Added this to my VirtualHost:
<VirtualHost *:80>
XSendFile on
XSendFilePath /path/to/protected/files/
Enabled the module by doing:
sudo a2enmod xsendfile
Then I restarted Apache. Then this code still just provides me with an empty file with 0 bytes:
file_path = '/path/to/protected/files/some_file.zip'
file_name = 'some_file.zip'
response = HttpResponse('', mimetype='application/zip')
response['Content-Disposition'] = 'attachment; filename=%s' % smart_str(file_name)
response['X-Sendfile'] = smart_str(file_path)
return response
And there is not in the Apache error log that pertains to XSendFile. What am I doing wrong?
I just upgraded from ubutnu 9.04 to 9.10, and everything was working fine before the upgrade but now when ever I play a file in a video player everything has a blue/green tint. Its like my video went into Smurf mode! for some reason flash based video is still fine, ex. hulu/youtube both play just fine.
Karmic only has mumble 1.1.8, but if I want to connect to a 1.2 server I need to upgrade... So I would like to know how I can upgrade to mumble 1.2.2 without messing myself up for later when I upgrade to 10.04 and beyond... I just want a smooth transition into the next versions of mumble.
Is there anyway to upgrade to this newer version and either keep it in the package manager or make it not interfere with the natural upgrades the program will later recieve from the package manager?
Thanks,
Dan
I have EXIM running on a server taht I am trying to decommision (but I still have stuff I need to move off).
$ sudo /etc/init.d/exim4 stop
* Stopping MTA [ OK ]
* ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size,
mail system possibly broken
2011-02-01 19:18:37 string too large in smtp_notquit_exit()
How can I stop exim from running, and accepting mail on port 25.
Hello i want to show the number of lines, words and characters of all configuration files "/ Etc / * conf" (command "wc"). How can i modify the command to not view the messages error.
Is there a way I can determine if hardware virtualisation is enabled in Karmic? I know my processor is capable of it (from knowing it's an AMD Athlon 64 x2 & via something coming out when I type egrep '(vmx|svm)' --color=always /proc/cpuinfo), but I can't tell if I need to flash my bios to enable it.
On my server the filesystem includes these partitions:
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 4.6G 929M 3.5G 21% /
/dev/sda5 76M 20M 53M 27% /boot
/dev/sda8 449G 199M 426G 1% /home
/dev/sda7 4.6G 4.4G 0 100% /var
(Output from df -ah)
I'm storing the web sites and databases under /var and as you can see it's got full. The /home folder just has basic user directories and nothing else so I'd like to repartition the server so that /dev/sda8 is about 5GB, with the rest going to dev/sda7.
What's the easiest way to do this via command line (i.e. SSH)?
when i type in terminal command are working fine
root@syscomp:/var/www/WebSite2# xsp4
xsp4
Listening on address: 0.0.0.0
Root directory: /var/www/WebSite2
Listening on port: 9000 (non-secure)
Hit Return to stop the server.
but i m using script in /etc/init/GPS_WebSite.conf
when the script are running fine, but not running in background when the script run one time and then closed,
that is why my mono server are not running all the time,
this is my GPS_WebSite.conf script, what i need to change to be running forever in background?
start on login-session-start
script
exec > /tmp/debug-my-script.txt 2>&1
sleep 10
cd /var/www/WebSite2
xsp4
end script
/media/MYDISK is where my hard drive is mounted automatically. I created a symlink using:
ln -s /media/MYDISK /home/camilo/MYDISK
chmod 777 /home/camilo/MYDISK
I'm setting up smb.conf like this:
[myshare1]
comment = external disk
browsable = yes
path = /home/camilo/MYDISK
guest ok = yes
read only = no
create mask = 0775
Also, in the [global] section I tried adding the following lines:
follow symlinks = yes
wide links = yes
unix extensions = no
The problem is that when browsing the shared folder in Windows 7, I get a "\\etc\myshare1 is not accessible" error.
When pointing the path to a regular folder it works fine. Also, when I point it directly to /media/MYDISK, it shows the same error.
EDIT: to make it more interesting, I have no graphical interface, so I need to touch the config files directly..
I need to download a particular NNTP group.
I do not need to setup any crons, put group contents in /opt and other stuff.
Just run <fetch-nntp> <server> <group-name> <output-dir> and be done with it without putting a lot of garbage in the system.
If that <fetch-nntp> would not fetch the same messages on the second run — fine. But I can live without it.
All NNTP clients that I've looked at are trying to be a NNTP server as well.
Is there something simpler that is suitable for my needs?
The command loadkeys dvorak '' ctrl:nocaps fires errors, apparently due to no sudo access, such as kdskbent: operation not permitted. The command dpkg-reconfigure is not permitted. How can I manually change the keyboard layout in console?
I'm beginning to deal with more than one user on my system (it's a VPS serving some sites) and I need to make sure I understand how group permissions work.
Here's my setup:
I have an account named "admin" .. it's basically the primary account that is used for serving most of the sites that I control myself.
Now, I added a second account named "Ville" as one of my users wants to be able to administer that site.
So, I can do this the easy way and just chown their domains folder under the ville user and viola, they have permission to do whatever they need be and so forth.
However, let's say I want to also give the admin user access to the files (modifying and all) .. how can I put both users into the same group and give them both permission?
I've tried doing:
sudo usermod -a -G admin ville
To add the ville into the admin group, but ville still cannot edit files by admin. Permissions for the primary directory for the ville user are read/write for both owner and group, and the current group for the files is admin:admin ..
But ville still can't write into the directory.
So, what should I be doing here to get this right and secure at the same time?
Thank you.