I have tried to create a symlink and it threw this error:
ln: accessing `.test': Permission denied
Now I can't unlink or delete the symlink file.
Tried Googling for help but could not find a solution.
Please find the results of following commands.
stat .test :
File: `.test'stat: cannot read symbolic link `.test': Permission denied
Size: 26 Blocks: 0 IO Block: 16384 symbolic link
Device: 1fh/31d Inode: 312075453 Links: 1
Access: (0777/lrwxrwxrwx) Uid: (11160/ chatt) Gid: (11307/ pgr)
Access: 2012-11-12 11:36:51.167327500 +0000
Modify: 2012-11-12 11:36:51.163331700 +0000
Change: 2012-11-12 11:36:51.163331700 +0000
Birth: -
chattr -i .test:
chattr: Permission denied while trying to stat .test
lsatter .test
lsattr: Operation not supported While reading flags on .test
Any help would be appreciated.
Thanks
I have a bunch of .mts files containing AVCHD Progressive video recorded by a Panasonic camera, and I need software on Ubuntu Lucid with which I can remove the boring parts, and concatenate the interesting parts, all this without reencoding the video stream. It's OK for me to cut at keyframe boundary.
If Avidemux was able to open the files, it would take about 60 hours of work for me to cut the files. (At least that was it last time I tried with similar videos, but of a file format supported by Avidemux.) So I need a fast, powerful and stable video editor, because I don't want that 60 hours of work go up to 240 or even 480 hours just because the tool is too slow or unstable or has a terrible UI.
I've tried Avidemux 2.5.5 and 2.5.6, but they crash trying to open such a file, even if I convert the file to .avi first using mencoder -oac copy -ovc copy. mplayer can play the files.
I've tried Avidemux 2.6.0, which can open the file, but it cannot jump to the previous or next keyframe etc. (if I make it jump to the next keyframe, and then to the previous keyframe, it doesn't end up at the original keyframe, sometimes displays an error etc.). Also I'm not sure if Avidemux 2.6.x would let me save the result without reencoding.
I've tried Kdenlive 0.7.7.1, but playback is very choppy, and it cannot play audio at all (complaining that SDL cannot find the device; but many other programs on the system can play audio). It would be a pain to work with.
I've tried converting the .mts file to .mkv using ffmpeg -i input.mts -vcodec copy -sameq -acodec copy -f matroska output.mkv, but that caused too much visible distortions in the video in both mplayer and Avidemux.
I've tried converting the .mts file with TsRemux.exe, but Avidemux 2.5.x still can't open that file.
Is there another program to cut and concatenate the files? Is there a preprocessor which would create a file (without reencoding the video) on which Avidemux wouldn't crash?
I would like to be able to bind some keys to mouse clicks done in specific locations. For example: when I press F1 I should get a left mouse click at coordinates 300x350, F2 at 600x350 and so on. Even better if this could be bound to a specific window application so that coordinates could be relative to it instead of the base desktop.
Is there a software which allows this?
ADDITION:
Ok autohotkey is great but I have problems with my particular setup. Quoting my comment below:
I'm using it with an old game (championship manager 01/02) which runs in windowed mode (and I have to set win98 compatibility for it to run): I can get the mouse to move but no click goes to the application
I have read this FAQ but it didn't help, this is the script I tried:
SendMode Play
SetKeyDelay, 0, 50, Play
F1::Click 42, 191
F2::ControlSend ahk_class main, Click, Championship Manager 01/02
Still no luck: pointer moves but no click goes through.
According to the docs https://help.ubuntu.com/10.04/serverguide/httpd.html i have done following, and that is almost how i do always in my Fedora, but Ubuntu looks like its not working.
a) DNS to IP
$ echo "127.0.0.1 a" > /etc/hosts
$ echo "127.0.0.1 b" > /etc/hosts
b) Apache virtualhost
$ ls
1 2 default default.backup default-ssl
$ cat 1
<VirtualHost *:80>
ServerName a
ServerAlias a
DocumentRoot /var/www/html/a/public
<Directory /var/www/html/a/public>
#AddDefaultCharset utf-8
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
$ cat 2
<VirtualHost *:80>
ServerName b
ServerAlias b
DocumentRoot /var/www/html/b/public
<Directory /var/www/html/b/public>
#AddDefaultCharset utf-8
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
c) load into Apache and restart the service
$ a2ensite 1
$ a2ensite 2
$ a2dissite default
$ /etc/init.d/apache2 restart
d) Browse the new 2 hosts
$ firefox http://a
Does not work it goes always with http://a or http://b to /var/www/html
How do i fix it so that it goes to its own directory e.g: http://a goes to /var/www/html/a/public not /var/www/html?
Each user has some php-files using a shared database commondb. I want to iterate over all users (in users.csv), and in their home folder (e.g. /home/joe) find all php files recursively, and replace each occurrence of "commondb" with their own databasename, e.g. "joedb" for "joe".
I have tried the following:
#!/bin/bash
# Execute like this:
# bash localize.bash users.csv
OLDIFS=$IFS
IFS=","
while read name dummy
do
echo $name
find /home/${name} -name '*.php' -exec sed -i '' 's/commondb/${name}db/g' "{}" \;
done < $1
IFS=$OLDIFS
for users.csv
joe, Joe J
george, George G
It does not fail, but the files are unchanged. I am quite weak in bash, and I can't figure out how to debug it :/
Can my script be fixed to work?
I got a "RTNETLINK answers: File exists Failed to bring up eth0:1" on "ifup eth0:1".
I suspect it happens because i assigned a new mac adress in my VM's network adapter.
Can you tell me how to fix the issue?
My configuration looks like this:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.80
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
# Alias being connected to 192.168.10.x Network
auto eth0:1
allow-hotplug eth0:1
iface eth0:1 inet static
address 192.168.10.83
netmask 255.255.255.0
gateway 192.168.10.10
dns-nameservers 192.168.10.1
Why do I get "RTNETLINK answer: File exists.." suddenly?
I worked with this configuration before without problems.
All i did in the past is to renew the adapters mac adress.
At the moment I am connected to the 192.168.10.x Network and if I do
/etc/init.d/networking stop
/etc/init.d/networking start
then i got "RTNETLINK [...] falied to bring up eth0:1"
but the strage thing is that i am able to connect to 192.168.10.83 via ssh from my host machine. But I cannot reach the internet from the debian client.
I hope it is clear what my problem is, now.
update
if i change my /etc/network/interfaces like this then "ifup eth0" fails, too with the same error!
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.10.83
netmask 255.255.255.0
gateway 192.168.10.10
dns-nameservers 192.168.10.1
with verbose option enabled i got:
Configuring interfache eth0=eth0 (inet)
run-parts --verbose /etc/network/if-pre-up.d
ip addr add 192.168.10.83/255.255.255.0 broadcast 192.168.10.255 dev eth0 label eth0
RTNETLINK answers: File exists Failed to bring up eth0.
same if i type this manually:
ip addr add 192.168.10.83/255.255.255.0 broadcast 192.168.10.255 dev eth0 label eth0
I recently upgraded to karmic, and clicked to keep my old menu.lst (to keep my windows XP boot info)... but now I'm not using the right kernel. Is there a way to have it give me the correct up to date menu.lst file again which I can manually merge into my old file?
Thanks,
Dan
I have a 250 GB HD with a XP partition. I partitioned the XP Box to 112 GB, since the max Virtual PC can load is 127 GB.
I have a new motherboard and can't load into the partition, so I am using Windows 7.
I have tried using WinImage to create the image but it creates an image of the whole disc (250 GB) and will not load on Virtual PC cause of the size limit.
What would be best to convert to VHD correctly?
I'm trying to set up a cron job to create a btrfs subvolume snapshot of my root partition. The command works perfectly if I run it from the command line, but nothing happens at the scheduled cron time. I've tried piping to logger and redirecting stdout/stderr to file, and not only is there no content, the file I'm logging to isn't even created.
The cron command I have is as follows:
0 0 * * * /sbin/btrfs subvolume snapshot / "/snapshots/$(date +%Y-%m-%d)"
I've tried prefixing it with /bin/bash, but that makes no difference. What am I missing?
I want to create a virtualised WAN. As in, I want to have a couple of VMs (VBox) on one physical host machine, that exist on separate LANs, but that can talk to each other. Do I make the VMs, set them up with different IP addresses (e.g. 1.2.3.4 and 5.6.7.8) and then configure port forwarding between them somehow???
I've seen articles that set up port forwarding on port 2222, but I don't really understand why this works. How is setting up the VM to listen to port 2222 and then port forward from there to, say, port 80, any different from just telling the VM to listen on port 80 in the first place?
FYI, the VMs run Ubuntu Desktop 14.x.
I thought of installing Xubuntu on my elder Targa Now nettop and didn't think about the driver option. So now I'm here with a fresh Xubuntu installation and looking for graphic drivers. I found someone who might have had a "good" result with SiS - and the package is already installed, but I can't get my xorg.conf right.
This is how my xorg.conf looks like right now:
Section "Device"
Identifier "Configured Video Device"
Driver "sis"
EndSection
Section "Monitor"
Identifier "Screen 0"
Modeline "1024x768_60.00" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync
#HorizSync 30.0-62.0
#VertRefresh 50.0-70.0
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection
Thanks for every help given!
I am using Ubuntu 11.04 and attached a Garmin data cable. The device gets recognized
[17718.502138] USB Serial support registered for pl2303
[17718.502181] pl2303 2-1:1.0: pl2303 converter detected
[17718.513416] usb 2-1: pl2303 converter now attached to ttyUSB0
[17718.513443] usbcore: registered new interface driver pl2303
[17718.513446] pl2303: Prolific PL2303 USB to serial adaptor driver
... but when I do a strace cat /dev/ttyUSB0 it hangs on the open part and does not continue any more
open("/dev/ttyUSB0", O_RDONLY|O_LARGEFILEC
If I do the same on Ubuntu 12.04 it stops on fread(" ... ") which is okay, as there is currently no data comming in at this port.
I am not sure if it is just a different configuration of the system or an driver related problem. How can I track this down further? Unfortunately I can not update the old Ubuntu 11.04 system for different reasons at the moment.
Context
Using Debian 6.04 "Squeeze" as POS station.
There are two printers installed: Network printer and a receipt printer
It absolutely must be able to print by default to the receipt printer on a certain website
though the system default is a network printer. In Debian ...it doesn't.
Problem
I've set up XP, 7, Ubuntu and even Mac OSX this way, so I'm no stranger to setting Firefox up this way ...same Iceweasel/Firefox settings ...complete fail. Always uses system default no matter what the settings, or, which printer you print from.
To get this to work on other systems you do this:
Print a page in Firefox using desired printer.
Ensure print.save_settings is true.
Firefox remembers last printer used
Set print.always_print_silent = true
The end. This works on every OS I've set up ....except Firefox and Iceweasel in Debian.
My only recourse seems to be to set the receipt printer as default or go back to bloaty Ubuntu/Mint ...etc.
I just bought a new SSD for my laptop, which is going to be a server running ArchLinux with grub2, GPT and btrfs.
My layout should look like this:
(grub-partition?)
/boot ext2 75MB
/ btrfs 15GB
/home btrfs remaining
What do I need to do to create these partitions in a correctly aligned fashion using parted?
Do I need to consider alignment when formatting each partition with the desired file system?
I am using a Swedish keyboard, and I want to be able to type braces easier.
I planned to map AltGr + å to '}' and AltGr + ä to '{'. However, nothing really changes. I have some other stuff in my .Xmodmap so I know that it gets loaded allright. Here's what I have so far:
keycode 35 = slash asciitilde dead_ogonek section dead_ogonek section
keycode 49 = asciicircum onehalf
keycode 66 = F10
clear Lock
keycode 34 = aring Aring braceleft
keycode 48 = adiaeresis Adiaeresis braceright
where the 2 last lines are the one that should be related to this. What could I be doing wrong?
Hi, as suggested by the title, I want to change CPU: actually I have two computers, one with Ubuntu running on an AMD Athlon 64 dual core 5200+ and the other with FreeBSD running on an AMD Sempron single core LE-1250.
I would like to swap (I am not sure that this is the correct term...) the CPUs from one computer to the other one, that is take the dual core from the ubuntu pc and put it inside the freebsd pc and viceversa. The mobo is the same.
Do you think I will encounter problems?
I used the instructions on this webpage to create a bootable USB drive for running Ubuntu 9.10. Unfortunately it doesn't work on my EeePC.
Even with 'Removable Dev.' selected in the BIOS as the first boot device, the PC just boots into Windows 7.
How do I troubleshoot this problem?
The drive is readable and looks like this:
Directory of E:\
28/10/2009 21:14 <DIR> .disk
28/10/2009 21:14 222 README.diskdefines
28/10/2009 21:14 143 autorun.inf
28/10/2009 21:14 <DIR> casper
28/10/2009 21:14 <DIR> dists
28/10/2009 21:14 <DIR> install
28/10/2009 21:14 <DIR> syslinux
28/10/2009 21:14 4,098 md5sum.txt
28/10/2009 21:14 <DIR> pics
28/10/2009 21:14 <DIR> pool
28/10/2009 21:14 <DIR> preseed
28/10/2009 21:14 0 ubuntu
26/10/2009 16:16 1,468,640 wubi.exe
25/02/2010 00:28 2,147,483,648 casper-rw
8 Dir(s) 5,290,307,584 bytes free
Is it possible to dual boot between Ubuntu and W7.vhd? If anyone knows please tell me how.
if you can answer to [email protected] would be perfect. Thanks
I'm running Mac OS X, and it appears that after SSHing to several machines, using identity files, my 'ssh-agent' builds up a lot of identity / keys and then sometimes offers too many to a remote machine, causing them to kick me off before connecting:
Received disconnect from 10.12.10.16: 2: Too many authentication failures for cwd
It's pretty obvious what's happening, and this page talks about it in more detail:
SSH servers only allow you to attempt
to authenticate a certain number of
times. Each failed password attempt,
each failed pubkey/identity that is
offered, etc, take up one of these
attempts. If you have a lot of SSH
keys in your agent, you may find that
an SSH server may kick you out before
allowing you to attempt password
authentication at all. If this is the
case, there are a few different
workarounds.
Rebooting clears the agent and then everything works OK again. I can also add this line to my .ssh/config file to force it to use password authentication:
PreferredAuthentications keyboard-interactive,password
Anyhow, I saw the note on the page I referenced talking about deleting keys from the agent, but I'm not sure if that applies on a Mac since they appear to be cleared after reboot anyhow.
Is there a simple way to clear out all keys in the 'ssh-agent' (the same thing that happens at reboot)?
I'm trying to install a VB6 Windows program that uses OLEDB to access VFP tables to run under Wine 1.0.1 on Ubuntu 9.10. Wine is configured to Windows version Windows XP. The program install ran okay, and I used winetricks to install MDAC 2.8 and JET 4.0 sp7. I also installed Microsoft's vfpoledb and vfpodbc drivers. The application starts and displays an error message, item cannot be found in the collection corresponding to the requested name or ordinal. Does anyone have an idea how to fix this?
I am experiencing a weird problem. I was running Xubuntu on my laptop until yesterday that I had to delete Xubuntu and install Windows.
I had a NTFS partition on my Xubuntu that I kept some files on it. Today after installing windows I wanted to move all the files from that partition to an external HDD. I selected all files and folders and clicked on Copy, then I went to the HDD and clicked on paste but nothing happened. I can not do that. I do not know why. I copy the files, and wherever I click paste, nothing happens.
If I try to copy the files and folders one by one, I can copy some of them, but some of them do not move.
The other problem I have is that I can not open some files, in particular pdf files. When I click on pdf files I get this error:
There was an error opening this document. This file cannot be found.
Also, I cannot play some mp4 files. I can not open some jpg and txt files.
I get this error
The directory name is invalid.
So in summary, after removing Xubuntu and installing windows 7 I have the following problems with one of the NTFS partitions on my internal drive:
Can not copy or cut all folders and files from that partition to any other partition - I also do not get any errors.
Can copy some folders and files
Can not access some pdf, jpeg, txt and mp4 files and get the above errors.
I should also mention I did not change anything for this partition during the installation or formatting the other partitions.
This is the opposite of this question. Basically I've been using Ubuntu for a while but decided to give KDE a shot so I went through the process of getting the latest KDE installed. I'm very impressed with KDE and the Kwin window manager seems like a better WM than Compiz which is what I was using for Gnome (sure that's an oppinion).
This was an Ubuntu Jaunty install. So how do I go about removing the Gnome desktop? Is there an automated way similar to what my previous question covered?
UPDATE: Should there be any packages I should NOT remove in the process?
I need to find all hardlinked files on a given filesystem. E.g. get a list of files, each line contains linked pairs, or triplets, etc.
I understand more or less how to do it, one needs to create a dictionary keyed by inode for all files/directories on a filesystem, exclude "." and ".." links, and then indodes with more than one name are hardlinks... But I hope that maybe a ready-made solution exists, or someone already wrote such a script.