Tag Info

New answers tagged

1

The easiest way to do this is on your GNU/Linux machine using sed(1). Assuming that only the text files you want to transform are on the directory: $ for a in /path/to/directory/*txt; do sed -i '1,3{s/tag1/tagOne/g;}' "${a}"; done What this does, explained in more detail: There is a loop to iterate over the files you want to work with: for a in [...]; ...


0

Can you check if your ~/.profile or ~/.bashrc have been modified by the RVM installer? They should, but there could have been something wrong with the installation (and honestly, I find RVM's instructions and installation procedure very confusing.) If you want RVM to always be loaded on shell startup, you should put its initialization commands into your ...


1

Install GParted with: sudo apt-get install gparted Launch it, right click the each partition and select Label. Type the label and then apply all changes. It is probably doable with KDE's partition manager too.


0

You can restore deleted partitions using "Testdisk" utility. Any Linux live CD/USB could download and install Testdisk (if not already present). http://www.cgsecurity.org/wiki/TestDisk_Livecd


1

If you have installed java to a particular location cd /PATH/TO/YOUR/INSTALLATION/DIR ./ControlPanel


-1

Here is how you can change the resolution of Ubuntu running in Hyper-V: Open the Terminal and type: sudo gedit /etc/default/grub Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:1920x1080 (or your preferred resolution) in between the quotes (The maximum possible resolution is 1920x1080) like this: ...


0

I prefer and think that is more easy to do it using one zip archiever with pasword like winrar ow 7zip on windows, copy the file and decompress it in linux.


0

I recently upgraded from Ubuntu 10.04 to 14.04. In 10.04 shared folders worked seamlessly with older versions of VMWare. But when I upgraded, VMware could "see" the shared folders (run vmware-hgfsclient) but they were not mountable at /mnt/hgfs/ I upgraded VMware to v6.0.4, reconfigured the VMWare tools (which rebuilds the modules against the latest ...


2

OpenPGP using the GnuPG tools will likely be easiest. (GnuPG for Windows comes in both native and Cygwin forms.) To encrypt with a password: gpg --symmetric myfile.txt To decrypt: gpg --decrypt myfile.txt.gpg


1

This is conceptual, not step by step, but it should explain enough to help you figure out what you need to do. The Hyper-V switch that the VM uses needs to be either External or Internal and not Private. Keep in mind that an External switch will look like a LAN connection to the VM, not a wireless connection even if on the real hardware it is associated ...


1

For Ubuntu 14.04, Ignacio's answer doesn't work. In fact is at other location, as told here.


0

The scripts are run with "run-parts" - see man page: run-parts runs a number of scripts or programs found in a single directory directory. Filenames should consist entirely of upper and lower case letters, digits, underscores, and hyphens. Subdirectories of directory and files with other names will be silently ignored.


0

It looks like you are missing the ZLIB header files. Try: sudo apt-get install zlib1g-dev Or maybe: sudo apt-get install zlib-dev The first should be the right one, but I don't have a Ubuntu machine to test it on. Hope this fixes your problem! EDIT Created a Ubuntu VM and verified that sudo apt-get install zlib1g-dev is the correct command.


0

I suspect this is more related to temperature rather than a driver or BIOS issue. After some time, the thermal compound gets old and transfers the heat to the heat sink less efficiently, causing the temperature of the core to raise. If you have the right knowledge I suggest this: Clean your computer thoroughly. Use compressed, canned air (I don't know how ...


0

I do not know if this is relevant anymore, but I am having the same issues and am still playing around with it. I have had some success, which I wish to share. First of all, since I am trying to achieve the same thing I knew right away what he is trying to achieve. He is trying to make a multi-boot usb stick for installing several Linux distros. To ...


0

scp -i <path-to-public-key> <remote-user@remote machine>:<remote-path-to-file> <local-destination> For example scp -i Downloads/xyz.pem ubuntu@xyz.com:/home/ubuntu/sample.csv Desktop/


0

By default, the NAB adapter simply works for me, without Cisco AnyConnect running. But DNS lookup failed when Cisco AnyConnect is running, this is due to a critical bug in Ubuntu 12.10+, "bug 1048783: network name lookups broken in NAT network adaptors". See more details at, https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1048783 To workaround ...


1

To return freed space was held by deleted partition you can either work from Windows with something like Partition Wizard or from Ubuntu with Gparted. Returning space means resize, and often, moving the partitions. The last one is just copying itself. So be ready it may take a few hours. Also you can run Linux's Gparted from Live CD of a variety linux ...


1

if I delete it then will those free space goes split other drives or will just uninitialized Deleting a partition will free up the space that was held by that partition. It will not automatically add the space to any other partition. In Windows, you will see this as a black bar in Disk Management. You can create another partition from this unallocated ...


1

This will most likely work, you just need to preserve file permissions, this can be archieved with cp -a. The only Issue I could think of is your backup system being outdated in some way which will make it unusable for your current kernel (e.g a different init system). Simply copying the system Is also what I do when I want to migrate my system to another ...


0

Debian and Ubuntu cryptographically sign all packages, so yes, it is secure: https://help.ubuntu.com/community/SecureApt


0

6 gb should be more than enough to hold anything you need in memory. Note that ram differs due to bus speed and quality. My experience has been that ubuntu will out preform xp with the same specs.


1

Dual booting does not require the use of more ram. You are running one os at a time. If you were planning to run a virtual machine than more ram would be advised. Ubuntu, depending on if your system is optimized should use less system resources than Windows XP, how much ram do you have right now?


0

In addition to above answers, if you need to use it frequently. Make a soft link to the desktop of the normal user. root@your_host ~/Desktop]# ln -s /home/Adenes/Desktop Above will create a shortcut in root's Desktop.


0

Ok the problem was that I don't have the windows 8 CD for this setup (nor a CD driver for that matter). I found a solution though. F12 during boot brings up an option to select where to boot from, and I found an option in the end that started the windows repair which fixed the issue.


0

Maybe it's Compiz's problem. Install CompizConfig by pressing Ctrl+Alt+T and type sudo apt-get install ccsm Press Alt+F2 and type ccsm Go to the Window Management tab Check Application Switcher, Maximize, Move Window, Resize Window and Place Window Now go to the Effects tab Tick the box Window Decoration Go to Preferences In the Backend section, choose ...


0

Simple, try this: cd /home/your_username/Desktop There are your files, you can list them using ls


0

I got the answer. I set up the postfix email service, and at once I was able to see the problem. It had nothing to do with root owning the file You need to export the passwords in order to use the ec2 tools. I put the following at the top of my script, and now it works perfectly. export AWS_ACCESS_KEY="xxxxxxxxxxx" export AWS_SECRET_KEY="xxxxxxxxxxxxx" ...


2

The desktop for user will be located at /home/user/Desktop.


1

You will be fine even with 1GiB (and likely less) of swap. My work computer typically uses no more than 140-150 MiB. A gigabyte is plenty of over-provisioning for that. Unless you do compute tasks that require datasets in the hundreds of gigabytes and (this one is important!) data is accessed in a more or less access-once fashion, you will never want to have ...


0

I had the same problem on Win XP host, Win XP guest. What I found is that it's not enough to enter your new key combo and select OK. You have to enter your new key combo in the text box, then click in another box as if you're going to edit something else. Then the changes will stick. File -> Preferences -> Input -> Virtual Machine


2

A much better idea than having "a lot of swap" is (re-)organizing your work so that the working sets fit in memory, then using the file-system to store and retrieve the work you do. I.e., instead of forcing the OS to guess what your memory usage patterns will be, use what you know about your problems to control your memory usage patterns. As a random ...


1

I was encountering this problem as well and fixed it by loading the mcrypt extension in my php.ini. To do this, I did the following: Edit /etc/php5/apache2/php.ini Add the line extension=mcrypt.so Save Restart apache (sudo service apache2 restart)


1

Very simple, either go to your firefox profile folder and create a file called user.js and place the following code in your user.js file. user_pref("general.appversion.override", "5.0 (X11)"); user_pref("general.buildID.override", "20140421162246"); user_pref("general.oscpu.override", "Linux i686"); user_pref("general.platform.override", "Linux i686"); ...


10

On Linux, you need enough swap so that the total virtual memory available (RAM + SWAP) is enough for all the processes you want to run at once and their maximum virtual footprint. If you have less swap than this, or no swap at all, then the following situation happens: the system runs out of memory trying to allocate a page. But, this is still a soft ...


0

Strangely, I had the same issue and rebooting did not solve the problem. I am using a Toshiba Satelite A135-S4527 with a Microsoft USB mouse. I plugged it in to a different USB port and that solved the problem. Whatever works...


0

On my machine dhclient is restarted my NetworkManager when re-connecting to the network. So maybe you can use the start time of the dhclient process? ps -o start,cmd $(pgrep dhclient)


2

The workload you want to apply to the machine needs a certain amount of memory to run (remember to add enough to the equation to handle peak loads), and you need to configure your computer to have at least that. Modern operating systems provide virtual memory as a combination of physical memory and swap space, so if you need more memory than the machine ...


0

The problem is that at the time the init.d scripts are started, /vagrant/ is not available/mounted but you rely on it being there in your script. See http://razius.com/articles/launching-services-after-vagrant-mount/ for some pointers.


0

What version of the code are you using? If you view the source if the empty page is it also blank? First, make sure your user table is empty or doesn't already have an entry for the email address you're using. Sometimes if a problem occurs the record is created but not cleaned up. That's something we should open an issue for. Second, make sure the database ...


1

As the others mentioned, a swap partition is a good idea even if you have plenty of RAM. It's not a good idea to put it on an SSD; the frequent writes of a swap partition will eventually wear out your drive. If you have a spare USB 3.0 port, I would suggest using a flash drive for your swap space. There are plenty of high-speed flash drives that are as fast ...


3

There are more considerations. If you need/want suspend to work then you need at least the size of your RAM and then some. However it sounds unlikely you need it given that you seem to mainly build a computational work horse. In this case please consider using a swap file instead of a partition. You don't need to worry about sizing much, getting rid of or ...


0

Try Webmin. It has the ability to set up the service you require and has a built-in web file manager.


23

RedHat recommends 4GB on a machine with 64GB https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s2-diskpartrecommend-ppc.html#id4394007 However, sizing swap is more of an art than a science. It depends on what the machine is being used for, how much disk space and memory you have, and other factors. Remember, ...


26

You probably only need a small amount of swap. When you have sufficient RAM for your computer's typical working set, which I'm pretty sure you do, you only need swap for two things: You need swap to get information that will likely never be accessed out of RAM to free up more space for disk cache. Many applications run on system startup and will never be ...


1

You can try to find a suspected big file/folder by running this, it will tell you all files/folders sizes: du ~ -h|sort -r -n|less it will also sort so the biggest file/folder will go first at the top of your screen. And don't forget to clean the Trash/Rubbish Bin anyway.


0

I would try the GRUB boot repair first. It will rewrite the MBR and bootloader after scanning the hard drive for bootable partitions. The next thing would be to do a Windows Repair. Insert the Windows CD and boot from that. When the menu comes up, select Repair Windows. If the repair is successful, you will likely only be able to boot into Windows. You ...


3

It appears that you inadvertently mounted the 2TB device itself rather than one of the partitions on it, as evidenced by /dev/sdb rather than e.g. /dev/sdb1. First be sure the 2TB device has valid, formatted partitions on it to receive the data (skip this step if you've already formatted the drive and just made a typo when mounting): Unmount /dev/sdb Run ...


0

To see whether mail is possibly sitting in the queue, use mailq on the command line, or check the content of the /var/spool/mail directory. Postfix should also be logging to /var/log/maillog - you can open another shell session, and tail this file when you run mail in your other shell session - using tail -f /var/log/maillog


0

When just using dpkg you don't know whether the package was manually installed by the user or automatically (as a dependency or during the initial OS install). If you want to retain that information, you need to get a list of only the packages that were actually manually installed. For that, you can use either of these two one-liners. Both yield the exact ...



Top 50 recent answers are included